waitstatus audit: Correctly handle case where smbmnt is killed by a
authorMartin Pool <mbp@samba.org>
Thu, 13 Feb 2003 04:45:40 +0000 (04:45 +0000)
committerMartin Pool <mbp@samba.org>
Thu, 13 Feb 2003 04:45:40 +0000 (04:45 +0000)
signal.  Previously this was incorrectly treated as success.
(This used to be commit fe5582c1b2e1c6a6ed5e048dd169a1fcf908069c)

source3/client/smbmount.c

index 5d1dc64884570c2d781c1cafc2bbb5b5f587bf22..b9d8e7be616badaa43416930f8275c216ed41037 100644 (file)
@@ -507,6 +507,9 @@ static void init_mount(void)
                fprintf(stderr,"smbmnt failed: %d\n", WEXITSTATUS(status));
                /* FIXME: do some proper error handling */
                exit(1);
+       } else if (WIFSIGNALLED(status)) {
+               fprintf(stderr, "smbmnt killed by signal %d\n", WTERMSIG(status));
+               exit(1);
        }
 
        /* Ok...  This is the rubicon for that mount point...  At any point