2007-04-12 18:31:42 +02:00
|
|
|
Index: util-linux-ng-2.12r+git20070330/mount/mount.c
|
|
|
|
===================================================================
|
|
|
|
--- util-linux-ng-2.12r+git20070330.orig/mount/mount.c
|
|
|
|
+++ util-linux-ng-2.12r+git20070330/mount/mount.c
|
|
|
|
@@ -1207,11 +1207,15 @@ mount_one (const char *spec, const char
|
2006-12-19 00:18:10 +01:00
|
|
|
|
|
|
|
if (types == NULL && !mounttype && !is_existing_file(spec)) {
|
|
|
|
if (strchr (spec, ':') != NULL) {
|
|
|
|
- types = "nfs";
|
|
|
|
- if (verbose)
|
|
|
|
- printf(_("mount: no type was given - "
|
2007-06-05 20:09:38 +02:00
|
|
|
+ types = fsprobe_get_fstype_by_devname(spec);
|
2006-12-19 00:18:10 +01:00
|
|
|
+ if(types == NULL) {
|
|
|
|
+ types = "nfs";
|
|
|
|
+ if (verbose) {
|
|
|
|
+ printf(_("mount: no type was given - "
|
|
|
|
"I'll assume nfs because of "
|
|
|
|
"the colon\n"));
|
|
|
|
+ }
|
|
|
|
+ }
|
|
|
|
} else if(!strncmp(spec, "//", 2)) {
|
2007-04-12 18:31:42 +02:00
|
|
|
types = "cifs";
|
2006-12-19 00:18:10 +01:00
|
|
|
if (verbose)
|