close those security holes! (kre)
authorKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Mon, 15 Aug 1983 13:43:56 +0000 (05:43 -0800)
committerKirk McKusick <mckusick@ucbvax.Berkeley.EDU>
Mon, 15 Aug 1983 13:43:56 +0000 (05:43 -0800)
SCCS-vsn: usr.bin/ex/ex3.7preserve/ex3.7preserve.c 7.8

usr/src/usr.bin/ex/ex3.7preserve/ex3.7preserve.c

index d018eeb..43f5a44 100644 (file)
@@ -1,5 +1,5 @@
 /* Copyright (c) 1981 Regents of the University of California */
 /* Copyright (c) 1981 Regents of the University of California */
-static char *sccsid = "@(#)ex3.7preserve.c     7.7     %G%";
+static char *sccsid = "@(#)ex3.7preserve.c     7.8     %G%";
 #include <stdio.h>
 #include <ctype.h>
 #include <sys/param.h>
 #include <stdio.h>
 #include <ctype.h>
 #include <sys/param.h>
@@ -310,7 +310,7 @@ notify(uid, fname, flag)
 
        if (pp == NULL)
                return;
 
        if (pp == NULL)
                return;
-       sprintf(cmd, "mail %s", pp->pw_name);
+       sprintf(cmd, "/bin/mail %s", pp->pw_name);
        mf = popen(cmd, "w");
        if (mf == NULL)
                return;
        mf = popen(cmd, "w");
        if (mf == NULL)
                return;