help-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Help, cannot mount (segfault)


From: Alexey Dejneka
Subject: Re: Help, cannot mount (segfault)
Date: Thu, 04 Jan 2001 20:27:00 +0300

You can do
   settrans -a /cdrom /hurd/ext2fs /dev/hd0s4
or patch mount utility:
---cut here---
diff -ur hurd/sutils/fstab.c hurd-new/sutils/fstab.c
--- hurd/sutils/fstab.c Fri Nov 19 08:06:18 1999
+++ hurd-new/sutils/fstab.c     Wed Dec 13 11:06:03 2000
@@ -275,7 +275,12 @@
   /* Copy each mntent field from MNTENT into FS's version.  */
   end = fs->storage;
 #define STORE(field) \
-    fs->mntent.field = end; end = stpcpy (end, mntent->field) + 1
+    if (mntent->field) \
+      { \
+       fs->mntent.field = end; end = stpcpy (end, mntent->field) + 1; \
+      } else { \
+        fs->mntent.field = 0; *end++ = 0;\
+      }
   STORE (mnt_fsname);
   STORE (mnt_dir);
   STORE (mnt_type);
---cut here---



reply via email to

[Prev in Thread] Current Thread [Next in Thread]