mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-19 03:33:43 +03:00
(remove_dir): Give a diagnostic upon failed save_cwd,
now that that function no longer calls `error'.
This commit is contained in:
1 parent
c8f1cbc602
commit
4f78b3f40f
1 file changed
+4
-1
+4
-1
@@ -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 ();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user