431 |
|
|
432 |
/* Now check that: file and fd reference the same file, |
/* Now check that: file and fd reference the same file, |
433 |
file only has one link, file is plain file. */ |
file only has one link, file is plain file. */ |
434 |
if (fdbuf.st_dev != filebuf.st_dev |
if (!(flags & MU_STREAM_ALLOW_LINKS) |
435 |
|| fdbuf.st_ino != filebuf.st_ino |
&& (fdbuf.st_dev != filebuf.st_dev |
436 |
|| fdbuf.st_nlink != 1 |
|| fdbuf.st_ino != filebuf.st_ino |
437 |
|| filebuf.st_nlink != 1 |
|| fdbuf.st_nlink != 1 |
438 |
|| (fdbuf.st_mode & S_IFMT) != S_IFREG) |
|| filebuf.st_nlink != 1 |
439 |
|
|| (fdbuf.st_mode & S_IFMT) != S_IFREG)) |
440 |
{ |
{ |
441 |
mu_error (_("%s must be a plain file with one link\n"), filename); |
mu_error (_("%s must be a plain file with one link\n"), filename); |
442 |
close (fd); |
close (fd); |