From 1f163f2814a373c3b9cd2525774eb0a7eab523ac Mon Sep 17 00:00:00 2001 From: Michael Albinus Date: Sun, 21 Oct 2007 10:53:16 +0000 Subject: [PATCH] * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. --- src/ChangeLog | 4 ++++ src/fileio.c | 10 +++++----- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 915e31f7c87..3df88c6f332 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2007-10-21 Michael Albinus + + * fileio.c (Fcopy_file): Call file name handler with preserve_uid_gid. + 2007-10-20 Juanma Barranquero * doc.c (Fdocumentation): Check for advice in all cases. diff --git a/src/fileio.c b/src/fileio.c index b0b9240c5ab..2d6f74a8840 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -2465,8 +2465,8 @@ uid and gid of FILE to NEWNAME. */) if (NILP (handler)) handler = Ffind_file_name_handler (newname, Qcopy_file); if (!NILP (handler)) - RETURN_UNGCPRO (call5 (handler, Qcopy_file, file, newname, - ok_if_already_exists, keep_time)); + RETURN_UNGCPRO (call6 (handler, Qcopy_file, file, newname, + ok_if_already_exists, keep_time, preserve_uid_gid)); encoded_file = ENCODE_FILE (file); encoded_newname = ENCODE_FILE (newname); @@ -4738,8 +4738,8 @@ variable `last-coding-system-used' to the coding system actually used. */) int opoint_byte = PT_BYTE; int oinserted = ZV - BEGV; int ochars_modiff = CHARS_MODIFF; - - TEMP_SET_PT_BOTH (BEGV, BEGV_BYTE); + + TEMP_SET_PT_BOTH (BEGV, BEGV_BYTE); insval = call3 (Qformat_decode, Qnil, make_number (oinserted), visit); CHECK_NUMBER (insval); @@ -4775,7 +4775,7 @@ variable `last-coding-system-used' to the coding system actually used. */) int opoint_byte = PT_BYTE; int oinserted = ZV - BEGV; int ochars_modiff = CHARS_MODIFF; - + TEMP_SET_PT_BOTH (BEGV, BEGV_BYTE); insval = call1 (XCAR (p), make_number (oinserted)); if (!NILP (insval)) -- 2.39.2