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:  Fixed
Privacy:  Public Assigned to:  alix82
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 20 Nov 2024 09:15:40 AM UTC, comment #1: 

The project has been migrated to github [1]

I believe your issue is fixed by

https://github.com/alisarctl/davfs2/commit/72f0c0e14b1d65b796298b8087d1c1bdaa9e5664

Please open an issue on github if it is not the case.

[1] https://github.com/alisarctl/davfs2

Ali Abdallah <alix82>
Group administrator
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

 

Carbon-Copy List
  • -email is unavailable- added by alix82 (Posted a comment)
  •  

    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.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2024-11-20 alix82 Open/ClosedOpen Closed
    2024-11-20 alix82 StatusNone Fixed
        Assigned toNone alix82

    Back to the top

    Powered by Savane 3.14-e31b.
    Corresponding source code