[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
id-utils 3.2d: mkdir creates corrupted ID file
From: |
nn |
Subject: |
id-utils 3.2d: mkdir creates corrupted ID file |
Date: |
Fri, 9 Mar 2001 15:35:58 -0800 |
The mkid in id-utils-3.2d when compiled and run on Linux Redhat 6.1
generates corrupted file list index entries.
It looks like serialize_file_links(), when traversing the file link table,
assumes that the parent flink is visited before the child.
When this is not true, a garbage (huge) flink->fl_index value is written out
to ID which will cause lid/gid/etc to Segmentation fault.
Very reproducable on my Intel desktop. I browsed around but
could not find any mail references to this problem.
Example:
Here's the first few lines of "od -c ID"
of the command "mkid crc.c enet.c" when executed
in my /home/nn directory on Solaris: (good file)
0000000 E A \0 004 001 \0 005 \0 \0 \0 002 \0 \0 \0 ` 004
0000020 \0 \0 032 \0 \0 \0 002 \0 \0 \0 W \0 \0 \0 * \0
0000040 \0 \0 AE 8 \0 \0 \a \0 \0 \0 / \0 " \0 \0 \0
0000060 h o m e \0 " \0 \0 \0 n n \0 " 001 \0 \0
0000100 c r c . c \0 F 002 \0 \0 e n e t . c
Here's the same when executed on Linux (x86): (bad file)
0000000 E A \0 004 001 \0 005 \0 \0 \0 002 \0 \0 \0 ` 004
0000020 \0 \0 032 \0 \0 \0 002 \0 \0 \0 W \0 \0 \0 * \0
0000040 \0 \0 AE 8 \0 \0 \a \0 \0 \0 / \0 " \0 \0 \0
0000060 n n \0 " O k 005 c r c . c \0 F 001 \0
0000100 \0 e n e t . c \0 F 001 \0 \0 h o m e
Note how the "nn" link has been generated before the "home" link
and the garbage (huge) 3 byte value of the fl_index for the "nn" entry
which causes gid to segfault.
Is there a fix for this bug?
thanks.
neal nuckolls
address@hidden
- id-utils 3.2d: mkdir creates corrupted ID file,
nn <=