diff -ru 1/usr.bin/grep/grep.c 2/usr.bin/grep/grep.c --- 1/usr.bin/grep/grep.c 2019-05-13 17:23:05.940222011 +0800 +++ 2/usr.bin/grep/grep.c 2019-05-13 17:23:44.656116175 +0800 @@ -123,7 +123,7 @@ int filebehave = FILE_STDIO; int devbehave = DEV_READ; /* -D: handling of devices */ int dirbehave = DIR_READ; /* -dRr: handling of directories */ -int linkbehave = LINK_READ; /* -OpS: handling of symlinks */ +int linkbehave = LINK_SKIP; /* -OpS: handling of symlinks */ bool dexclude, dinclude; /* --exclude-dir and --include-dir */ bool fexclude, finclude; /* --exclude and --include */