Fix long standing regression in the building of the server directory
name (found by Nigel Rowe).
This commit is contained in:
parent
e9cb2e6d5f
commit
6c1494b19c
|
@ -117,9 +117,9 @@ static void init_server_dir( dev_t dev, ino_t ino )
|
||||||
p = server_dir + strlen(server_dir);
|
p = server_dir + strlen(server_dir);
|
||||||
|
|
||||||
if (sizeof(dev) > sizeof(unsigned long) && dev > ~0UL)
|
if (sizeof(dev) > sizeof(unsigned long) && dev > ~0UL)
|
||||||
sprintf( p, "%lx%08lx-", (unsigned long)(dev >> 32), (unsigned long)dev );
|
p += sprintf( p, "%lx%08lx-", (unsigned long)(dev >> 32), (unsigned long)dev );
|
||||||
else
|
else
|
||||||
sprintf( p, "%lx-", (unsigned long)dev );
|
p += sprintf( p, "%lx-", (unsigned long)dev );
|
||||||
|
|
||||||
if (sizeof(ino) > sizeof(unsigned long) && ino > ~0UL)
|
if (sizeof(ino) > sizeof(unsigned long) && ino > ~0UL)
|
||||||
sprintf( p, "%lx%08lx", (unsigned long)(ino >> 32), (unsigned long)ino );
|
sprintf( p, "%lx%08lx", (unsigned long)(ino >> 32), (unsigned long)ino );
|
||||||
|
|
Loading…
Reference in New Issue