[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Would like a way to silent ln "warning: making a hard link to a symbolic
From: |
sacrificial-spam-address |
Subject: |
Would like a way to silent ln "warning: making a hard link to a symbolic link is not portable" |
Date: |
18 Jun 2003 03:15:42 -0000 |
src/ln.c:167 prints this warning unconditionally:
165 if (S_ISLNK (source_stats.st_mode))
166 {
167 error (0, 0, _("%s: warning: making a hard link to a symbolic link\
168 is not portable"),
169 quote (source));
170 }
I have found a linux-specific use for this in my boot scripts, and would
like to be able to see other errors from ln without cluttering up the
boot process with this one.
A -q/--quiet option to suppress this (and any other future) warnings would
be appreciated. (Whether you want it to apply to -V is your option.)
(If you care, I make a subset of a given directory available in a chroot
jail by hard linking the required files into a subdirectory and using
"mount -r --bind" to make them visible in the jail; because they are
hard links, things like shared objects will share page cache space with
the copies used by "outside" programs, and config files can be edited in
their usual places in /etc.)
Thank you!
- Would like a way to silent ln "warning: making a hard link to a symbolic link is not portable",
sacrificial-spam-address <=