home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 January / usenetsourcesnewsgroupsinfomagicjanuary1994.iso / sources / unix / volume4 / unaxcess / patch1 / mkconf.c.pat < prev    next >
Encoding:
Text File  |  1986-11-30  |  442 b   |  22 lines

  1. *** ../temp1/Utilities/mkconf.c    Mon May 12 07:37:01 1986
  2. --- Utilities/mkconf.c    Mon May 12 07:50:12 1986
  3. ***************
  4. *** 15,20
  5.       {
  6.       setuid(geteuid());
  7.       umask(022);
  8.       execvp("mkdir", argv);
  9.       }
  10.   
  11.  
  12. --- 15,23 -----
  13.       {
  14.       setuid(geteuid());
  15.       umask(022);
  16. +     /* oops.  UNaXcess is passing two args - only the first is wanted */
  17. +     if (argc >= 3)
  18. +     argv[3] = 0;
  19.       execvp("mkdir", argv);
  20.       }
  21.   
  22.