diff options
Diffstat (limited to 'sys-apps/eject/files/eject-2.0.13-pumount.patch')
-rw-r--r-- | sys-apps/eject/files/eject-2.0.13-pumount.patch | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/sys-apps/eject/files/eject-2.0.13-pumount.patch b/sys-apps/eject/files/eject-2.0.13-pumount.patch deleted file mode 100644 index a0f0935b12c3..000000000000 --- a/sys-apps/eject/files/eject-2.0.13-pumount.patch +++ /dev/null @@ -1,26 +0,0 @@ -Run pumount before umount so the hotplugging people will be happy. - -http://bugs.gentoo.org/91977 - ---- eject.c -+++ eject.c -@@ -540,11 +540,14 @@ - switch (fork()) { - case 0: /* child */ - seteuid(getuid()); /* reduce likelyhood of security holes when running setuid */ -- if(p_option) -- execl("/bin/umount", "/bin/umount", fullName, "-n", NULL); -- else -- execl("/bin/umount", "/bin/umount", fullName, NULL); -- fprintf(stderr, _("%s: unable to exec /bin/umount of `%s': %s\n"), -+ if(p_option) { -+ execlp("pumount", "pumount", fullName, "-n", NULL); -+ execlp("umount", "umount", fullName, "-n", NULL); -+ } else { -+ execlp("pumount", "pumount", fullName, NULL); -+ execlp("umount", "umount", fullName, NULL); -+ } -+ fprintf(stderr, _("%s: unable to exec umount of `%s': %s\n"), - programName, fullName, strerror(errno)); - exit(1); - break; |