smgl/simpleinit-msb: initial commit
[grimoire-witchcraft.git] / smgl / simpleinit-msb / patches / shutdown.c.diff
blob3aa1e841e2734d6adfd17674cfede2e8860f6e1f
1 --- shutdown.c.orig 2006-04-22 16:38:28.000000000 +0200
2 +++ shutdown.c 2006-04-23 00:16:58.000000000 +0200
3 @@ -733,6 +733,8 @@
4 char *filesys;
6 sync();
7 + sync();
8 + sync();
9 if (!(mtab = setmntent(_PATH_PROC_MOUNTS, "r"))) {
10 char buffy[256];
11 sprintf(buffy,"shutdown: Cannot open " _PATH_PROC_MOUNTS ": %s",ERRSTRING);
12 @@ -758,7 +760,7 @@
13 #ifdef DEBUGGING
14 printf("umount %s\n", filesys);
15 #else
16 - if (umount(mntlist[i]) < 0)
17 + if (unmount(mntlist[i],0) < 0)
19 char buffy[1024];
20 sprintf(buffy,_("shutdown: Couldn't umount %s: %s"),