This apparently concerns a KDE bug. Can we get a list of how the various Linux ports work?
----- Forwarded message from Alan Eldridge <[EMAIL PROTECTED]> ----- Date: Thu, 29 Nov 2001 16:56:11 -0500 From: Alan Eldridge <[EMAIL PROTECTED]> User-Agent: Mutt/1.2.5i To: KDE FreeBSD List <[EMAIL PROTECTED]> Cc: [EMAIL PROTECTED] Subject: PR ports/31629 (People with access to non-FreeBSD Unix needed to help) I need some help testing on various *nix systems to get further info on a KDE bug. OK, I tested the bad chmod call on Solaris. Solaris takes the bad value and does exactly what my previous message predicted. Ugh. Anybody with access to AIX, HP/UX, TruUnix (or whatever), SCO, etc, please run this test program and send me the results, using the commands I used (except for compiler, of course, if you have something other than gcc). I will summarize on the kde-freebsd list and update the KDE bug. [EMAIL PROTECTED] ~]$ cat foo.c #include <stdlib.h> #include <stdio.h> #include <errno.h> int main(int ac, char **av) { if (ac == 3) { char *fn = av[1]; char *md = av[2]; int mode = 0xffff; sscanf(md, "%x", &mode); if (!chmod(fn, mode)) { printf("chmod ok\n"); } else { printf("chmod barfed; error = %s\n", strerror(errno)); } } return 0; } [EMAIL PROTECTED] ~]$ chmod 664 foo.c [EMAIL PROTECTED] ~]$ ls -l foo.c -rw-rw-r-- 1 aeldri aeldri 336 Nov 29 16:36 foo.c [EMAIL PROTECTED] ~]$ gcc -o foo foo.c [EMAIL PROTECTED] ~]$ uname -a SunOS piglet 5.7 Generic_106541-16 sun4u sparc [EMAIL PROTECTED] ~]$ ./foo foo.c ffff chmod ok [EMAIL PROTECTED] ~]$ ls -l foo.c -rwsrwsrwx 1 aeldri aeldri 336 Nov 29 16:36 foo.c [EMAIL PROTECTED] ~]$ -- Alan Eldridge #include <cstdlib> free(sklyarov); To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-ports" in the body of the message