diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-10 23:12:02 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2011-05-11 00:28:52 +0300 |
commit | db81e378576dcc5510032c72060e48e562f208c9 (patch) | |
tree | 914c5f277a5fad050527a5c5da815f521e8023dc /src/gpg.c | |
parent | 84db86f0151385a8f05483bf691fde86b4e4e153 (diff) | |
download | wydawca-db81e378576dcc5510032c72060e48e562f208c9.tar.gz wydawca-db81e378576dcc5510032c72060e48e562f208c9.tar.bz2 |
Remove save-cwd.
* src/pushd.c: New file.
* src/Makefile.am: Add pushd.c
* src/wydawca.h (push_dir, pop_dir): New functions.
* src/diskio.c: Use push_dir/pop_dir.
* src/exec.c: Likewise.
* src/gpg.c: Likewise.
* gnulib.modules: Remove save-cwd.
* tests/pushck.c: New file.
* tests/pushdir.at: New file.
* tests/testsuite.at: Add pushdir.at
* tests/Makefile.am: Likewise.
* tests/.gitignore: Add pushck.
Diffstat (limited to 'src/gpg.c')
-rw-r--r-- | src/gpg.c | 6 |
1 files changed, 2 insertions, 4 deletions
@@ -19,3 +19,2 @@ #include "wydawca.h" -#include "save-cwd.h" #include <gpgme.h> @@ -93,5 +92,4 @@ rmdir_r (const char *name) int rc; - struct saved_cwd cwd; - if (save_cwd (&cwd)) + if (push_dir (NULL)) { @@ -102,3 +100,3 @@ rmdir_r (const char *name) rc = recursive_rmdir (name); - if (restore_cwd (&cwd)) + if (pop_dir ()) { |