ALT Linux Bugzilla
– Attachment 879 Details for
Bug 4806
Master2.4b2: subfs слетает с CD
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
apt-0.5.15cnc6-alt-umount.patch
apt-0.5.15cnc6-alt-umount.patch (text/plain), 895 bytes, created by
Sergey V Turchin
on 2005-05-14 13:27:53 MSD
(
hide
)
Description:
apt-0.5.15cnc6-alt-umount.patch
Filename:
MIME Type:
Creator:
Sergey V Turchin
Created:
2005-05-14 13:27:53 MSD
Size:
895 bytes
patch
obsolete
>--- apt-0.5.15cnc6/apt-pkg/contrib/cdromutl.cc~ 2005-05-14 13:13:03 +0400 >+++ apt-0.5.15cnc6/apt-pkg/contrib/cdromutl.cc 2005-05-14 13:26:05 +0400 >@@ -34,6 +34,7 @@ > #include <sys/stat.h> > #include <unistd.h> > #include <stdio.h> >+#include <mntent.h> > /*}}}*/ > > // IsMounted - Returns true if the mount point is mounted /*{{{*/ >@@ -100,6 +101,17 @@ bool UnmountCdrom(string Path) > } > else > { >+ FILE *f; >+ if ((f = setmntent ("/proc/mounts", "r")) != NULL) >+ { >+ struct mntent *mnt; >+ while ((mnt = getmntent (f)) != NULL) >+ if (strcmp (Path.c_str(), mnt->mnt_dir) == 0) >+ if ((strcmp ("subfs", mnt->mnt_type) == 0) || (strcmp ("supermount", mnt->mnt_type) == 0)) >+ _exit(0); >+ endmntent (f); >+ } >+ > const char *Args[10]; > Args[0] = "umount"; > Args[1] = Path.c_str();
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 4806
:
498
|
499
|
879
|
884