Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 946394 - net-fs/curlftpfs-0.9.2-r5: runtime issue with curl -kerberos
Summary: net-fs/curlftpfs-0.9.2-r5: runtime issue with curl -kerberos
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal minor
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-12-13 23:12 UTC by Romain Bezut
Modified: 2024-12-14 21:47 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Romain Bezut 2024-12-13 23:12:23 UTC
I got an issue that prevents some FTP backups to work using net-fs/curlftpfs-0.9.2-r5.
It simply prevents the `curlftpfs` command to work properly in its normal usage:

$ curlftpfs ftp.example.com /home/backup/ftp
Error setting curl:

Unfortunately nothing was very helpful either with debug arguments, curl's environment variables or even with strace.
Inspired by [1], I added some debugging in `ftpfs.c` and found that the issue lies at line 1663:

  curl_easy_setopt_or_die(easy, CURLOPT_KRB4LEVEL, ftpfs.krb4);


It turns out that curl is compiled without support for kerberos as it is irrelevant on this machine.

I worked around the initial issue in two distinct ways:
- Rebuilding curl with the kerberos use flag
- Commenting line 1663 mentioned here

A cleaner approach would be appreciated, and if none, this post would help people work around the issue.


[1]: https://curl-library.cool.haxx.narkive.com/KHc3Ri42/empty-error-message-error-setting-curl#post5

Reproducible: Always

Steps to Reproduce:
1. Install curl version 8 without the kerberos use flag
2. Install the latest version of curlftpfs
3. Execute: `curlftpfs ftp.example.com /home/backup/ftp`
Actual Results:  
An empty error message that is not very helpful.

Expected Results:  
`curlftpfs` should probably ignore the error and go on without support for kerberos, or should check for kerberos support in curl before-hand.

Another (dirty) way to fix this would be to require the kerberos use flag on curl for curlftpfs.