emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] Changes to emacs/src/dired.c,v


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/src/dired.c,v
Date: Fri, 16 May 2008 11:11:34 +0000

CVSROOT:        /cvsroot/emacs
Module name:    emacs
Changes by:     Eli Zaretskii <eliz>    08/05/16 11:11:32

Index: dired.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/dired.c,v
retrieving revision 1.150
retrieving revision 1.151
diff -u -b -r1.150 -r1.151
--- dired.c     14 May 2008 07:49:21 -0000      1.150
+++ dired.c     16 May 2008 11:11:31 -0000      1.151
@@ -979,7 +979,7 @@
   char modes[10];
   Lisp_Object handler;
   struct gcpro gcpro1;
-  EMACS_INT ino;
+  EMACS_INT ino, uid, gid;
   char *uname, *gname;
 
   filename = Fexpand_file_name (filename, Qnil);
@@ -1015,20 +1015,22 @@
 #endif
     }
   values[1] = make_number (s.st_nlink);
+  uid = s.st_uid;
+  gid = s.st_gid;
   if (NILP (id_format) || EQ (id_format, Qinteger))
     {
-      values[2] = make_fixnum_or_float (s.st_uid);
-      values[3] = make_fixnum_or_float (s.st_gid);
+      values[2] = make_fixnum_or_float (uid);
+      values[3] = make_fixnum_or_float (gid);
     }
   else
     {
       BLOCK_INPUT;
       uname = stat_uname (&s);
       values[2] = (uname ? build_string (uname)
-                  : make_fixnum_or_float (s.st_uid));
+                  : make_fixnum_or_float (uid));
       gname = stat_gname (&s);
       values[3] = (gname ? build_string (gname)
-                  : make_fixnum_or_float (s.st_gid));
+                  : make_fixnum_or_float (gid));
       UNBLOCK_INPUT;
     }
   values[4] = make_time (s.st_atime);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]