I was going through the source for vsd-genskel.pl to get an
idea about what exactly happens behind the scenes during skel
creation.

There is one thing I am unsure of.  The script does a simple
cp -a /usr into the skel directory.  Afterwards skel/usr/sbin
is deleted and then recreated with:

mkdir ("$skelroot/usr/sbin", 0755);
    foreach $file (@usr_sbin_progs) {
        `cp -a /usr/sbin/$file $skelroot/usr/sbin/$file`;
    }

How does the result of this loop differ from a simple "cp -a"?
I assume that @usr_sbin_progs contains less than all of the
files in /usr/sbin, but I am not sure how or why?

Reply via email to