BusyBox Bug and Patch Tracking
BusyBox
  

Viewing Issue Simple Details Jump to Notes ] View Advanced ] Issue History ] Print ]
ID Category Severity Reproducibility Date Submitted Last Update
0000534 [BusyBox] Other minor always 11-05-05 17:36 06-30-06 09:53
Reporter smiley73 View Status public  
Assigned To BusyBox
Priority normal Resolution fixed  
Status closed   Product Version svn
Summary 0000534: "mount -t auto " broken
Description "mount -t auto" is broken. Mount returns the error message "no such device" .
Not specifying "-t auto" at all or specifying the file system, i.e. "-t ext2" works.
Additional Information
Attached Files  mount-auto.diff [^] (459 bytes) 11-28-05 00:17
 mount-auto-2.diff [^] (471 bytes) 12-15-05 02:53

- Relationships

- Notes
(0000783)
iggarpe
12-15-05 02:25

The cause is that the standard C library getmntent will return "auto" as
the filesystem type, and the mount.c code incorrectly checks for a NULL
string:

if (fsType || ...

Should be:

if ((fsType && strcmp(fsType, "auto")) || ...

Trivial patch attached.
 
(0000784)
iggarpe
12-15-05 02:55

Please use the second patch. The first one is incorrect (could not find a way to delete it).
 
(0001217)
bernhardf
04-03-06 08:02

mount was recently rewritten. Please verify that the new version behaves as expected:
http://busybox.net/downloads/busybox-1.1.1.tar.bz2 [^]
 
(0001486)
landley
06-30-06 09:53

Mount's seen a half-dozen fixes since this, open a new bug with specific reproduction sequence (including the /etc/fstab file in question) if you still have problems.
 

- Issue History
Date Modified Username Field Change
11-05-05 17:36 smiley73 New Issue
11-05-05 17:36 smiley73 Status new => assigned
11-05-05 17:36 smiley73 Assigned To  => BusyBox
11-25-05 10:17 iggarpe Issue Monitored: iggarpe
11-25-05 10:18 iggarpe Note Added: 0000696
11-28-05 00:17 iggarpe File Added: mount-auto.diff
11-28-05 00:18 iggarpe Note Deleted: 0000696
11-28-05 00:18 iggarpe Note Added: 0000701
12-15-05 02:25 iggarpe Note Added: 0000783
12-15-05 02:29 iggarpe Note Deleted: 0000701
12-15-05 02:53 iggarpe File Added: mount-auto-2.diff
12-15-05 02:55 iggarpe Note Added: 0000784
01-10-06 02:08 robang74 Issue Monitored: robang74
04-03-06 08:02 bernhardf Note Added: 0001217
04-26-06 07:12 donrong Issue Monitored: donrong
06-30-06 09:53 landley Status assigned => closed
06-30-06 09:53 landley Note Added: 0001486
06-30-06 09:53 landley Resolution open => fixed


Copyright © 2000 - 2006 Mantis Group
Powered by Mantis Bugtracker