ALT Linux Bugzilla
– Attachment 2974 Details for
Bug 17457
package a utility that would regularly update ls-R files
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
/usr/local/sbin/updatelsR
updatelsR (text/plain), 512 bytes, created by
Ivan Zakharyaschev
on 2008-10-06 19:24:21 MSD
(
hide
)
Description:
/usr/local/sbin/updatelsR
Filename:
MIME Type:
Creator:
Ivan Zakharyaschev
Created:
2008-10-06 19:24:21 MSD
Size:
512 bytes
patch
obsolete
>#!/bin/bash -e ># Exit immediately if a simple command fails. > ># This script will generate the list $OUTPUT of $HOME (and put it there), ># using the access rights of $USER. ># The defaults are: ls-R, the anonymous ftp home, the anonymous user of vsftpd. >readonly HOME=/var/ftp/ \ > USER=vsftpd \ > OUTPUT=ls-R > >cd "$HOME" > >readonly new="$(mktemp "$OUTPUT".XXXX)" >trap 'rm -f "$new"' EXIT > >su "$USER" -c 'find -noleaf -printf "%P\n" || true' --shell /bin/sh &> "$new" >chmod a+r "$new" > >mv -f "$new" "$OUTPUT"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 17457
:
2974
|
2975
|
2984