Changeset 35010 in vbox for trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
- Timestamp:
- Dec 13, 2010 1:51:20 PM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 68837
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceAutoMount.cpp
r34230 r35010 54 54 55 55 #ifndef _PATH_MOUNTED 56 #define _PATH_MOUNTED "/etc/mtab" 56 #ifdef RT_OS_SOLARIS 57 #define _PATH_MOUNTED "/etc/mnttab" 58 #else 59 #define _PATH_MOUNTED "/etc/mtab" 60 #endif 57 61 #endif 58 62 … … 110 114 FILE *pFh = fopen(_PATH_MOUNTED, "r"); 111 115 if (!pFh) 112 VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mtab!\n"); 116 VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mount tab \"%s\"!\n", 117 _PATH_MOUNTED); 113 118 else 114 119 { … … 128 133 FILE *pFh = setmntent(_PATH_MOUNTED, "r+t"); 129 134 if (pFh == NULL) 130 VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mtab!\n"); 135 VBoxServiceError("VBoxServiceAutoMountShareIsMounted: Could not open mount tab \"%s\"!\n", 136 _PATH_MOUNTED); 131 137 else 132 138 {
Note:
See TracChangeset
for help on using the changeset viewer.