X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/30dd408d502b42e46d59cfc89af5f7aa07f8c1ff..7054379384884f0975c687ce9b2cd8c20e3f2c12:/uip/inc.c diff --git a/uip/inc.c b/uip/inc.c index b4572824..41e785ff 100644 --- a/uip/inc.c +++ b/uip/inc.c @@ -137,7 +137,7 @@ static gid_t return_gid; #define TRYDROPGROUPPRIVS() DROPGROUPPRIVS() #define DROPGROUPPRIVS() \ if (setegid(getgid()) != 0) { \ - adios ("setegid", "unable to set group to %ld", (long) getgid()); \ + adios ("setegid", "unable to restore group to %ld", (long) getgid()); \ } #define GETGROUPPRIVS() \ if (setegid(return_gid) != 0) { \ @@ -584,7 +584,7 @@ go_to_it: if (errno != ENOENT) adios (packfile, "error on file"); cp = concat ("Create file \"", packfile, "\"? ", NULL); - if (noisy && !getanswer (cp)) + if (noisy && !read_yes_or_no_if_tty (cp)) done (1); free (cp); } @@ -959,6 +959,7 @@ skip: static void inc_done (int status) { + done = exit; if (packfile && pd != NOTOK) mbx_close (packfile, pd); if (locked)