[26827] in Athena Bugs
linux 9.4.26: acroread
daemon@ATHENA.MIT.EDU (chris avrich)
Thu Apr 13 17:24:35 2006
Message-Id: <200604132124.k3DLOH7K031541@dewey.mit.edu>
From: chris avrich <cda@mit.edu>
To: bugs@mit.edu
Date: Thu, 13 Apr 2006 17:24:17 -0400
X-Spam-Score: 1.217
X-Spam-Level: * (1.217)
X-Spam-Flag: NO
Cc: cda@mit.edu
Errors-To: bugs-bounces@mit.edu
System name: dewey.mit.edu
Type and version: i686 9.4.26
Display type: Intel Corporation 82915G/GV/910GL Express Chipset Family Graphics Controller (rev 04)
Shell: /bin/athena/tcsh
Window manager: sawfish
What were you trying to do?
"Save a Copy" of a file to a USB flash drive mounted with attach-usb.
What's wrong:
Acroread complains that I am not a superuser, even though other
programs can save to /mnt/usb just fine (for example, mozilla,
or touch'ing a file at the command prompt). Acroread still makes
this complaint if I run it as the superuser, which would probably
indicate this is a bug rather than a legitimate error.
What should have happened:
The file should have been saved.
Please describe any relevant documentation references:
Here is what I think is a relevant chunk of an strace performed
when running acroread as cda:
chdir("/mnt/usb") = 0
getcwd("/mnt/usb", 4095) = 9
chdir("/afs/athena.mit.edu/user/c/d/cda") = 0
readlink("/mnt/usb/mallard.pdf", 0x9f1e91c, 4095) = -1 ENOENT (No such file or directory)
stat64("/mit/acro_v7.0/distrib/i386_rhel4/Reader/Messages/ENU/RdrMsgENU.pdf", {st_mode=S_IFREG|0644, st_size=48242, ...}) = 0
getcwd("/afs/athena.mit.edu/user/c/d/cda", 4095) = 33
chdir("/mit/acro_v7.0/distrib/i386_rhel4/Reader/Messages/ENU") = 0
getcwd("/var/athena/local/acro_v7.0/distrib/i386_rhel4/Reader/Messages/ENU", 4095) = 67
chdir("/afs/athena.mit.edu/user/c/d/cda") = 0
readlink("/var/athena/local/acro_v7.0/distrib/i386_rhel4/Reader/Messages/ENU/RdrMsgENU.pdf", 0x9f1d910, 4095) = -1 EINVAL (Invalid argument)
stat64("/mnt/usb/mallard.pdf", 0xbfffce34) = -1 ENOENT (No such file or directory)
getcwd("/afs/athena.mit.edu/user/c/d/cda", 4095) = 33
chdir("/mnt/usb") = 0
getcwd("/mnt/usb", 4095) = 9
chdir("/afs/athena.mit.edu/user/c/d/cda") = 0
readlink("/mnt/usb/mallard.pdf", 0x9f1e91c, 4095) = -1 ENOENT (No such file or directory)
open("/mnt/usb/mallard.pdf", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/mnt/usb/mallard.pdf", O_RDWR|O_CREAT|O_TRUNC, 0600) = 28
lseek(25, 0, SEEK_CUR) = 18879
lseek(25, 0, SEEK_END) = 204184
lseek(25, 18879, SEEK_SET) = 18879
ftruncate(28, 204184) = -1 EPERM (Operation not permitted)
futex(0x3fcc84, FUTEX_WAKE, 2147483647) = 0
futex(0x3fce28, FUTEX_WAKE, 2147483647) = 0
close(28) = 0
unlink("/mnt/usb/mallard.pdf") = 0