From owner-freebsd-ports Thu Nov 29 13:57: 7 2001 Delivered-To: freebsd-ports@freebsd.org Received: from wwweasel.geeksrus.net (wwweasel.geeksrus.net [64.67.200.82]) by hub.freebsd.org (Postfix) with ESMTP id E5F8937B41B for ; Thu, 29 Nov 2001 13:56:56 -0800 (PST) Received: (from alane@localhost) by wwweasel.geeksrus.net (8.11.6/8.11.6) id fATLuBu69128; Thu, 29 Nov 2001 16:56:11 -0500 (EST) (envelope-from alane) Date: Thu, 29 Nov 2001 16:56:11 -0500 From: Alan Eldridge To: KDE FreeBSD List Cc: ports@freebsd.org Subject: PR ports/31629 (People with access to non-FreeBSD Unix needed to help) Message-ID: <20011129165611.A69082@wwweasel.geeksrus.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i Sender: owner-freebsd-ports@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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. [aeldri@piglet ~]$ cat foo.c #include #include #include 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; } [aeldri@piglet ~]$ chmod 664 foo.c [aeldri@piglet ~]$ ls -l foo.c -rw-rw-r-- 1 aeldri aeldri 336 Nov 29 16:36 foo.c [aeldri@piglet ~]$ gcc -o foo foo.c [aeldri@piglet ~]$ uname -a SunOS piglet 5.7 Generic_106541-16 sun4u sparc [aeldri@piglet ~]$ ./foo foo.c ffff chmod ok [aeldri@piglet ~]$ ls -l foo.c -rwsrwsrwx 1 aeldri aeldri 336 Nov 29 16:36 foo.c [aeldri@piglet ~]$ -- Alan Eldridge #include free(sklyarov); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-ports" in the body of the message