bugdavfs2 - Bugs: bug #64795, davfs-1.7.0 fails silently if fuse...

 
 

bug #64795: davfs-1.7.0 fails silently if fuse module not alreay loaded

Submitter:  None
Submitted:  Thu 19 Oct 2023 04:41:02 PM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  None
Privacy:  Public Assigned to:  None
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Thu 19 Oct 2023 04:41:02 PM UTC, original submission:  

The ERR makro called below in src/kernel-interface.c terminates the program on nonzero errno.

If fuse is currently not yet available, the errno resulting from the first call to open() will be 19 (no such device) and thus fork() will never be called and the "/sbin/modprobe fuse" command never be executed.


158     *dev = open(path, O_RDWR | O_NONBLOCK);
159
160     if (*dev <= 0) {
161         ERR(_("loading kernel module fuse"));
162         int ret;
163         pid_t pid = fork();
164         if (pid == 0) {
165 #if defined(_FreeBSD_)
166             execl("/sbin/kldload", "kldload", "fusefs", NULL);
167 #elif defined(_linux_)
168             execl("/sbin/modprobe", "modprobe", "fuse", NULL);
169 #endif

A tested fix consist in inserting errno=0 before the call to ERR().

Anonymous

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only logged-in users can vote.

 

No changes have been made to this item

Back to the top

Powered by Savane 3.13-4448.
Corresponding source code