aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFrancesco Potortì1993-09-08 15:28:44 +0000
committerFrancesco Potortì1993-09-08 15:28:44 +0000
commit953d263ecdca7f93653693ecf8b70bb5f6f11480 (patch)
treec78763db65603761ce331f3bae427e5a5f59665e /src
parent94f9dcbecf4918952ee5d6f5e5939c5161889e03 (diff)
downloademacs-953d263ecdca7f93653693ecf8b70bb5f6f11480.tar.gz
emacs-953d263ecdca7f93653693ecf8b70bb5f6f11480.zip
* filelock.c (fill_in_lock_short_file_name): corrected the crc
generation algorithm.
Diffstat (limited to 'src')
-rw-r--r--src/filelock.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/filelock.c b/src/filelock.c
index 73f6f4237e6..a79797e086b 100644
--- a/src/filelock.c
+++ b/src/filelock.c
@@ -98,8 +98,7 @@ fill_in_lock_short_file_name (lockfile, fn)
98 98
99 for (p = XSTRING (fn)->data; new = *p++; ) 99 for (p = XSTRING (fn)->data; new = *p++; )
100 { 100 {
101 new += crc.byte[7]; 101 new += crc.byte[6];
102 crc.byte[7] = crc.byte[6];
103 crc.byte[6] = crc.byte[5] + new; 102 crc.byte[6] = crc.byte[5] + new;
104 crc.byte[5] = crc.byte[4]; 103 crc.byte[5] = crc.byte[4];
105 crc.byte[4] = crc.byte[3]; 104 crc.byte[4] = crc.byte[3];
@@ -177,7 +176,7 @@ lock_file_owner_name (lfname)
177/* If HAVE_LONG_FILE_NAMES is not defined, the lock file name is the hex 176/* If HAVE_LONG_FILE_NAMES is not defined, the lock file name is the hex
178 representation of a 14-bytes CRC generated from the file name 177 representation of a 14-bytes CRC generated from the file name
179 and put in the Emacs lock directory (not very nice, but it works). 178 and put in the Emacs lock directory (not very nice, but it works).
180 (ie., /ka/king/junk.tex -> /!/ec92d3ed24a8f0). */ 179 (ie., /ka/king/junk.tex -> /!/12a82c62f1c6da). */
181 180
182void 181void
183lock_file (fn) 182lock_file (fn)