Tizen 2.1 base
[platform/upstream/sysvinit.git] / debian / patches / 96_shutdown_acctoff.dpatch
1 Purpose: Debian accton require an argument since at least 2009-07-11.
2 Authour: Petter Reinholdtsen
3 Fixes:   #536574
4 Status:  unknown
5
6 --- a/src/shutdown.c
7 +++ b/src/shutdown.c
8 @@ -331,7 +331,12 @@
9         write_wtmp("shutdown", "~~", 0, RUN_LVL, "~~");
10  
11         /* This is for those who have quota installed. */
12 -       spawn(1, "accton", NULL);
13 +       spawn(1, "accton", "off", NULL);
14 +/* This is an alternative way to disable accounting, saving a fork()
15 +#if _BSD_SOURCE || (_XOPEN_SOURCE && _XOPEN_SOURCE < 500)
16 +       if (acct(NULL)) perror("acct: ");
17 +#endif
18 +*/
19         spawn(1, "quotaoff", "-a", NULL);
20  
21         sync();