ORBit2 r2082 - in trunk/linc2: . src



Author: michael
Date: Tue Aug 26 11:22:15 2008
New Revision: 2082
URL: http://svn.gnome.org/viewvc/ORBit2?rev=2082&view=rev

Log:
2008-08-26  Mike Gorse  <mgorse novell com>

        * src/linc-protocols.c (link_protocol_post_create_unix): 
        use chown not fchown on the socket.



Modified:
   trunk/linc2/ChangeLog
   trunk/linc2/src/linc-protocols.c

Modified: trunk/linc2/src/linc-protocols.c
==============================================================================
--- trunk/linc2/src/linc-protocols.c	(original)
+++ trunk/linc2/src/linc-protocols.c	Tue Aug 26 11:22:15 2008
@@ -1012,7 +1012,7 @@
 	if (getuid() == 0) {
 		struct stat stat_buf;
 		if (!stat (link_tmpdir, &stat_buf))
-			fchown (fd, stat_buf.st_uid, -1);
+			chown (saddr_un->sun_path, stat_buf.st_uid, -1);
 	}
 #endif
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]