ALT Linux Bugzilla
– Attachment 498 Details for
Bug 4806
Master2.4b2: subfs слетает с CD
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
apt-dont-umount-supersubmount.patch
apt-dont-umount-supersubmount.patch (text/plain), 842 bytes, created by
Sergey V Turchin
on 2004-07-20 15:35:25 MSD
(
hide
)
Description:
apt-dont-umount-supersubmount.patch
Filename:
MIME Type:
Creator:
Sergey V Turchin
Created:
2004-07-20 15:35:25 MSD
Size:
842 bytes
patch
obsolete
>--- apt-0.5.15cnc6/apt-pkg/contrib/cdromutl.cc~ 2004-07-20 15:12:54 +0400 >+++ apt-0.5.15cnc6/apt-pkg/contrib/cdromutl.cc 2004-07-20 15:23:42 +0400 >@@ -34,6 +34,8 @@ > #include <sys/stat.h> > #include <unistd.h> > #include <stdio.h> >+ >+#include <mntent.h> > /*}}}*/ > > // IsMounted - Returns true if the mount point is mounted /*{{{*/ >@@ -100,6 +102,19 @@ bool UnmountCdrom(string Path) > } > else > { >+ FILE *f; >+ struct mntent *mnt; >+ if ((f = setmntent (MOUNTED, "r")) != NULL) >+ { >+ while ((mnt = getmntent (f)) != NULL) >+ if (strcmp (Path.c_str(), mnt->mnt_fsname) == 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