diff options
author | Jim Meyering <jim@meyering.net> | 2003-07-12 16:22:39 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-07-12 16:22:39 +0000 |
commit | 4f78b3f40f06e50649edbaf223077c8f49682125 (patch) | |
tree | ca31eb680f7ac74e08a23da098a10bcc96e13914 /src | |
parent | c8f1cbc602c5208b52ce91a2f9f949e1535b5cb8 (diff) | |
download | coreutils-4f78b3f40f06e50649edbaf223077c8f49682125.tar.xz |
(remove_dir): Give a diagnostic upon failed save_cwd,
now that that function no longer calls `error'.
Diffstat (limited to 'src')
-rw-r--r-- | src/remove.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/remove.c b/src/remove.c index 645dedfc0..ed9938429 100644 --- a/src/remove.c +++ b/src/remove.c @@ -976,7 +976,10 @@ remove_dir (Dirstack_state *ds, char const *dir, struct saved_cwd **cwd_state, { *cwd_state = XMALLOC (struct saved_cwd, 1); if (save_cwd (*cwd_state)) - return RM_ERROR; + { + error (0, errno, _("cannot get current directory")); + return RM_ERROR; + } AD_push_initial (ds, *cwd_state); AD_INIT_OTHER_MEMBERS (); } |