version 1.20, 2004/10/04 05:21:27 |
version 1.21, 2009/02/15 22:20:54 |
|
|
|
|
debugmsg(DM_CALL, "update(%s, 0x%x, 0x%x)\n", rname, opts, statp); |
debugmsg(DM_CALL, "update(%s, 0x%x, 0x%x)\n", rname, opts, statp); |
|
|
|
switch (statp->st_mode & S_IFMT) { |
|
case S_IFBLK: |
|
debugmsg(DM_MISC, "%s is a block special; skipping\n", target); |
|
return(US_NOTHING); |
|
case S_IFCHR: |
|
debugmsg(DM_MISC, "%s is a character special; skipping\n", |
|
target); |
|
return(US_NOTHING); |
|
case S_IFIFO: |
|
debugmsg(DM_MISC, "%s is a fifo; skipping\n", target); |
|
return(US_NOTHING); |
|
case S_IFSOCK: |
|
debugmsg(DM_MISC, "%s is a socket; skipping\n", target); |
|
return(US_NOTHING); |
|
} |
|
|
if (IS_ON(opts, DO_NOEXEC)) |
if (IS_ON(opts, DO_NOEXEC)) |
if (isexec(target, statp)) { |
if (isexec(target, statp)) { |
debugmsg(DM_MISC, "%s is an executable\n", target); |
debugmsg(DM_MISC, "%s is an executable\n", target); |
|
|
/* |
/* |
* Since we always send link info to the server |
* Since we always send link info to the server |
* so the server can determine if the remote link |
* so the server can determine if the remote link |
* is correct, we never get any acknowledge meant |
* is correct, we never get any acknowledgement |
* from the server whether the link was really |
* from the server whether the link was really |
* updated or not. |
* updated or not. |
*/ |
*/ |