Le 04/05/2024 à 17:32, Jakub Wilk a écrit :
* Vincent Danjean <vdanj...@debian.org>, 2016-12-25 23:36:
++ { "exfat", "nosuid,nodev,user,quiet,nonempty", 1, "077",
",iocharset=%s",",fmask=%04o,dmask=%04o"},
This doesn't work for me.
In dmesg I see:
exfat: Unknown parameter 'quiet'
I forgot this bug for a long time since I'm using exfat SDcard/USBkey with
pmount when it is required. But looking at my package:
$ apt-cache policy pmount
pmount:
Installé : 0.9.99-alpha-1.2
Candidat : 0.9.99-alpha-1.2
Table de version :
*** 0.9.99-alpha-1.2 100
100 /var/lib/dpkg/status
0.9.23-7.1 500
500 http://deb.debian.org/debian testing/main amd64 Packages
500 http://deb.debian.org/debian unstable/main amd64 Packages
It is a local package. So I looked where I build my packages and found a git
tree initially cloned from
git://git.debian.org/git/pmount/pmount-debian.git (of course, the site does not
exist anymore).
I was using a new upstream version (0.9.99-alpha) whose packaging had been
prepared by Vincent Fourmond
and I locally applied this patch on top of it:
$ git diff origin/master
diff --git a/debian/changelog b/debian/changelog
index 3e17503..4a5f7cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,17 @@
+pmount (0.9.99-alpha-1.2) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * fix options for exfat (remove unsupported 'quiet' option)
+
+ -- Vincent Danjean <vdanj...@debian.org> Sun, 18 Jul 2021 11:52:26 +0200
+
+pmount (0.9.99-alpha-1.1) unstable; urgency=medium
+
+ * Non-maintainer upload.
+ * support exfat filesystem (via fuse) (Closes: #755434)
+
+ -- Vincent Danjean <vdanj...@debian.org> Sun, 25 Dec 2016 23:18:39 +0100
+
pmount (0.9.99-alpha-1) experimental; urgency=low
* New upstream experimental release, bringing in a lot of new features:
diff --git a/debian/patches/02-exfat-support.diff
b/debian/patches/02-exfat-support.diff
new file mode 100644
index 0000000..d73af98
--- /dev/null
+++ b/debian/patches/02-exfat-support.diff
@@ -0,0 +1,11 @@
+Add support for exfat
+--- a/src/fs.c
++++ b/src/fs.c
+@@ -23,6 +23,7 @@
+ { "iso9660", "nosuid,nodev,user", 1, NULL, ",iocharset=%s" },
+ { "vfat", "nosuid,nodev,user,quiet,shortname=mixed", 1, "077",
+ ",iocharset=%s",",fmask=%04o,dmask=%04o"},
++ { "exfat", "nosuid,nodev,user", 1, "077",
",iocharset=%s",",fmask=%04o,dmask=%04o"},
+ { "hfsplus", "nosuid,nodev,user", 1, NULL, 0 },
+ { "hfs", "nosuid,nodev,user", 1, "077", NULL,
+ ",file_umask=%04o,dir_umask=%04o"},
diff --git a/debian/patches/series b/debian/patches/series
index e706419..f1ac0f2 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
01-man-plugdev.diff
+02-exfat-support.diff
Looking at the dates, I see that origin/master was done by Vincent Fourmond on
2011-03-25
I created a (local) package with the patch in this bug report on 2016-12-25
and I updated it on 2021-07-18 by removing the "quiet" and "nonempty" options.
Regards,
Vincent
PS: it seems that 0.9.99-alpha never enters unstable. The changelog is saying:
diff --git a/ChangeLog b/ChangeLog
index 1dd34dd..8dcca5d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,22 @@
+0.9.99-alpha
+------------
+- EXPERIMENTAL RELEASE, use at your own risks !
+- introducing a new /etc/pmount.conf file in which potentially
+ security-weak operations can be allowed:
+ * running fsck
+ * mounting while not physically logged (that was the default)
+ * loopback device mounting
+- pulling in new Russian translation from Rosetta
+- now checking if root can open the device before attempting any
+ mount, to avoid very long hangs on "no medium found" and the like.
+- whitelisting the "firewire" bus as a hotplug bus.
+
+
+ As noticed above, this is an experimental release. Please use with
+ care: even if the parsing of configuration files should be safe, it
+ has not been extensively tried.
+
+
0.9.23
-----------
- fix a security hole (see CVE-2010-2192 for more