[BusyBox 0000562]: mount fails to mount "auto" filesystems

bugs at busybox.net bugs at busybox.net
Fri Nov 25 19:20:02 UTC 2005


The following issue has been CLOSED 
====================================================================== 
http://busybox.net/bugs/view.php?id=562 
====================================================================== 
Reported By:                iggarpe
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   562
Category:                   Standards Compliance
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     closed
Resolution:                 duplicate
Duplicate:                  0
Fixed in Version:           
====================================================================== 
Date Submitted:             11-25-2005 10:14 PST
Last Modified:              11-25-2005 11:19 PST
====================================================================== 
Summary:                    mount fails to mount "auto" filesystems
Description: 
Mount fails to mount those filesystems described in /etc/fstab as type
"auto".

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

if (fsType || ...

Should be:

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

Trivial patch attached.

====================================================================== 

---------------------------------------------------------------------- 
 vapier - 11-25-05 11:19  
---------------------------------------------------------------------- 
Dupe of 534, attach your patch there please 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
11-25-05 10:14  iggarpe        New Issue                                    
11-25-05 10:14  iggarpe        Status                   new => assigned     
11-25-05 10:14  iggarpe        Assigned To               => BusyBox         
11-25-05 10:14  iggarpe        File Added: mount-auto.diff                    
11-25-05 11:19  vapier         Note Added: 0000697                          
11-25-05 11:19  vapier         Status                   assigned => closed  
11-25-05 11:19  vapier         Resolution               open => duplicate   
======================================================================




More information about the busybox-cvs mailing list