CVSROOT: /cvs
Module name: src
Changes by: [email protected] 2026/11/29 23:07:56
Modified files:
sys/ufs/ext2fs : ext2fs_vnops.c
Log message:
ext2fs: refuse an empty symlink target
symlink(2) with an empty target made a zero-length symlink. ext2 has
no such thing: Linux refuses the call with ENOENT, and e2fsck reports
the inode as an invalid symlink and clears it, so a volume written by
OpenBSD loses the link when Linux checks it. Refuse it with ENOENT as
Linux does.
Found by fsstress (from xfstests), which picks an empty target about
once in PATH_MAX symlinks.
OK miod@