aboutsummaryrefslogtreecommitdiff
path: root/src/gpg.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-10 23:12:02 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2011-05-11 00:28:52 +0300
commitdb81e378576dcc5510032c72060e48e562f208c9 (patch)
tree914c5f277a5fad050527a5c5da815f521e8023dc /src/gpg.c
parent84db86f0151385a8f05483bf691fde86b4e4e153 (diff)
downloadwydawca-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.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/gpg.c b/src/gpg.c
index 979d0c0..474d94b 100644
--- a/src/gpg.c
+++ b/src/gpg.c
@@ -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 ())
{

Return to:

Send suggestions and report system problems to the System administrator.