/[emacs]/emacs/src/fileio.c
ViewVC logotype

Diff of /emacs/src/fileio.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.544 by monnier, Tue May 31 21:54:43 2005 UTC revision 1.545 by rms, Thu Jun 23 21:29:26 2005 UTC
# Line 2775  This is what happens in interactive use Line 2775  This is what happens in interactive use
2775      {      {
2776        if (errno == EXDEV)        if (errno == EXDEV)
2777          {          {
2778              struct stat data;
2779  #ifdef S_IFLNK  #ifdef S_IFLNK
2780            symlink_target = Ffile_symlink_p (file);            symlink_target = Ffile_symlink_p (file);
2781            if (! NILP (symlink_target))            if (! NILP (symlink_target))
# Line 2787  This is what happens in interactive use Line 2788  This is what happens in interactive use
2788                             so don't have copy-file prompt again.  */                             so don't have copy-file prompt again.  */
2789                          NILP (ok_if_already_exists) ? Qnil : Qt,                          NILP (ok_if_already_exists) ? Qnil : Qt,
2790                          Qt, Qnil);                          Qt, Qnil);
2791    
2792              /* Preserve owner and group, if possible (if we are root).  */
2793              if (stat (SDATA (encoded_file), &data) >= 0)
2794                chown (SDATA (encoded_file), data.st_uid, data.st_gid);
2795    
2796            Fdelete_file (file);            Fdelete_file (file);
2797          }          }
2798        else        else

Legend:
Removed from v.1.544  
changed lines
  Added in v.1.545

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26