GNU bug report logs -
#13125
Fix permissions bugs with setgid directories etc.
Previous Next
Reported by: Paul Eggert <eggert <at> cs.ucla.edu>
Date: Sun, 9 Dec 2012 01:15:01 UTC
Severity: normal
Tags: patch, security
Done: Paul Eggert <eggert <at> cs.ucla.edu>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 12/09/2012 12:32 AM, Michael Albinus wrote:
> the change must be backwards compatible for older
> Emacs versions as well as for XEmacs
Thanks for mentioning that.
The following further patch should suffice:
=== modified file 'lisp/net/tramp-sh.el'
--- lisp/net/tramp-sh.el 2012-12-09 00:50:02 +0000
+++ lisp/net/tramp-sh.el 2012-12-09 08:53:55 +0000
@@ -5024,8 +5024,8 @@
(if (equal id-format 'integer) (user-uid) (user-login-name)))
(defun tramp-get-local-gid (id-format)
- (if (equal id-format 'integer)
- (group-gid)
+ (if (and (fboundp 'group-gid) (equal id-format 'integer))
+ (tramp-compat-funcall 'group-gid)
(nth 3 (tramp-compat-file-attributes "~/" id-format))))
;; Some predefined connection properties.
This bug report was last modified 12 years and 163 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.