Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

ltfs returns 0 even on failed mount (or other fuse errors)

Aperta
#541 0 commenti 0 reazioni 2 assegnatari Vedi su GitHub

@Magic-Kowel ci sta già lavorando.

Dal 25/8/2025.

Valutazione

Questa issue non è ancora stata valutata.

Descrizione

bug

Describe the bug
ltfs returns 0 even on a failed mount, as it ignores the return code of fuse_main() on https://github.com/LinearTapeFileSystem/ltfs/blob/adb37220d74e0bdd06dfdf9602a84fcd2f0d82e2/src/main.c#L1337-L1340
The return code of fuse_main() is overwritten a few lines below, so the error is never propagated https://github.com/LinearTapeFileSystem/ltfs/blob/adb37220d74e0bdd06dfdf9602a84fcd2f0d82e2/src/main.c#L1343
I would suggest replacing LTFS_WARN with LTFS_ERR and adding a return ret; right after the ltfsmsg to fix this.

To Reproduce
mkdir /tmp/ltfs
touch /tmp/ltfs/foo
ltfs -o devname=9A700L0077 /tmp/ltfs
echo $?

Lingua principale
C
Stelle
352
Fork
110
Merge medio
2h 50m
PR unite (30g)
2

Guida per i contributori

Apri la guida per i contributori

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di LinearTapeFileSystem/ltfs

Tutte le issue di LinearTapeFileSystem/ltfs

Issue simili

Altre issue su C

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.