fix test14's "clever" (broken) filename generation
This commit is contained in:
parent
4db12454e9
commit
062bb2c1e8
1 changed files with 1 additions and 3 deletions
|
@ -29,9 +29,7 @@ int main()
|
||||||
chdir("DIR_14");
|
chdir("DIR_14");
|
||||||
|
|
||||||
pid = getpid();
|
pid = getpid();
|
||||||
name[6] = (pid & 037) + 33;
|
sprintf(&name[6], "%x", pid);
|
||||||
name[7] = ((pid * pid) & 037) + 33;
|
|
||||||
name[8] = 0;
|
|
||||||
|
|
||||||
for (i = 0; i < TRIALS; i++) {
|
for (i = 0; i < TRIALS; i++) {
|
||||||
if ( (fd0 = creat(name, 0777)) < 0) e(1);
|
if ( (fd0 = creat(name, 0777)) < 0) e(1);
|
||||||
|
|
Loading…
Reference in a new issue