edquota.c (67794) | edquota.c (79452) |
---|---|
1/* 2 * Copyright (c) 1980, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Robert Elz at The University of Melbourne. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44#if 0 45static char sccsid[] = "@(#)edquota.c 8.1 (Berkeley) 6/6/93"; 46#endif 47static const char rcsid[] = | 1/* 2 * Copyright (c) 1980, 1990, 1993 3 * The Regents of the University of California. All rights reserved. 4 * 5 * This code is derived from software contributed to Berkeley by 6 * Robert Elz at The University of Melbourne. 7 * 8 * Redistribution and use in source and binary forms, with or without --- 31 unchanged lines hidden (view full) --- 40 The Regents of the University of California. All rights reserved.\n"; 41#endif /* not lint */ 42 43#ifndef lint 44#if 0 45static char sccsid[] = "@(#)edquota.c 8.1 (Berkeley) 6/6/93"; 46#endif 47static const char rcsid[] = |
48 "$FreeBSD: head/usr.sbin/edquota/edquota.c 67794 2000-10-28 14:26:23Z gallatin $"; | 48 "$FreeBSD: head/usr.sbin/edquota/edquota.c 79452 2001-07-09 09:24:06Z brian $"; |
49#endif /* not lint */ 50 51/* 52 * Disk quota editor. 53 */ 54#include <sys/param.h> 55#include <sys/stat.h> 56#include <sys/file.h> --- 323 unchanged lines hidden (view full) --- 380 if (pid == 0) { 381 register char *ed; 382 383 sigsetmask(omask); 384 setgid(getgid()); 385 setuid(getuid()); 386 if ((ed = getenv("EDITOR")) == (char *)0) 387 ed = _PATH_VI; | 49#endif /* not lint */ 50 51/* 52 * Disk quota editor. 53 */ 54#include <sys/param.h> 55#include <sys/stat.h> 56#include <sys/file.h> --- 323 unchanged lines hidden (view full) --- 380 if (pid == 0) { 381 register char *ed; 382 383 sigsetmask(omask); 384 setgid(getgid()); 385 setuid(getuid()); 386 if ((ed = getenv("EDITOR")) == (char *)0) 387 ed = _PATH_VI; |
388 execlp(ed, ed, tmpfile, 0); | 388 execlp(ed, ed, tmpfile, (char *)0); |
389 err(1, "%s", ed); 390 } 391 waitpid(pid, &stat, 0); 392 sigsetmask(omask); 393 if (!WIFEXITED(stat) || WEXITSTATUS(stat) != 0) 394 return (0); 395 return (1); 396} --- 366 unchanged lines hidden --- | 389 err(1, "%s", ed); 390 } 391 waitpid(pid, &stat, 0); 392 sigsetmask(omask); 393 if (!WIFEXITED(stat) || WEXITSTATUS(stat) != 0) 394 return (0); 395 return (1); 396} --- 366 unchanged lines hidden --- |