aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/filelock.c10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 02b3ccc8b05..71fa7867cf0 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -203,9 +203,15 @@ get_boot_time ()
203 if (! NILP (Ffile_exists_p (tempname))) 203 if (! NILP (Ffile_exists_p (tempname)))
204 { 204 {
205 Lisp_Object args[6]; 205 Lisp_Object args[6];
206 tempname = Fexpand_file_name (build_string ("wtmp"), 206
207 /* The utmp functions on mescaline.gnu.org accept only
208 file names up to 8 characters long. Choose a 2
209 character long prefix, and call make_temp_file with
210 second arg non-zero, so that it will add not more
211 than 6 characters to the prefix. */
212 tempname = Fexpand_file_name (build_string ("wt"),
207 Vtemporary_file_directory); 213 Vtemporary_file_directory);
208 tempname = Fmake_temp_name (tempname); 214 tempname = make_temp_name (tempname, 1);
209 args[0] = Vshell_file_name; 215 args[0] = Vshell_file_name;
210 args[1] = Qnil; 216 args[1] = Qnil;
211 args[2] = Qnil; 217 args[2] = Qnil;