From 93c3291e492af60c79271cbc95a02d55d80142dc Mon Sep 17 00:00:00 2001 From: Andrea Luzzardi Date: Thu, 31 May 2007 22:40:14 +0000 Subject: [PATCH] Mount the USB device with noatime --- pam_usb/src/volume.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pam_usb/src/volume.c b/pam_usb/src/volume.c index 449d71d..b2b16a3 100644 --- a/pam_usb/src/volume.c +++ b/pam_usb/src/volume.c @@ -47,10 +47,10 @@ static int pusb_volume_mount(t_pusb_options *opts, LibHalVolume **volume, log_debug("Attempting to mount device %s with label %s\n", devname, tempname); if (!fs) - snprintf(command, sizeof(command), "pmount -s %s %s", + snprintf(command, sizeof(command), "pmount -A -s %s %s", devname, tempname); else - snprintf(command, sizeof(command), "pmount -s -t %s %s %s", + snprintf(command, sizeof(command), "pmount -A -s -t %s %s %s", fs, devname, tempname); log_debug("Executing \"%s\"\n", command); if (system(command) != 0)