Linux vps-61133.fhnet.fr 4.9.0-19-amd64 #1 SMP Debian 4.9.320-2 (2022-06-30) x86_64
Apache/2.4.25 (Debian)
Server IP : 93.113.207.21 & Your IP : 216.73.216.35
Domains :
Cant Read [ /etc/named.conf ]
User : www-data
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Readme
/
etc /
alternatives /
Delete
Unzip
Name
Size
Permission
Date
Action
README
100
B
-rw-r--r--
2017-05-17 13:16
aclocal
35.93
KB
-rwxrwxrwx
2017-01-25 19:15
aclocal.1.gz
1.18
KB
-rw-r--r--
2017-01-25 19:15
animate
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
animate-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
animate-im6.1.gz
2.11
KB
-rw-r--r--
2022-05-14 01:05
animate.1.gz
2.11
KB
-rw-r--r--
2022-05-14 01:05
automake
247.27
KB
-rwxrwxrwx
2017-01-25 19:15
automake.1.gz
1.57
KB
-rw-r--r--
2017-01-25 19:15
awk
646.72
KB
-rwxrwxrwx
2017-01-25 17:06
awk.1.gz
28.17
KB
-rw-r--r--
2017-01-25 17:06
builtins.7.gz
508
B
-rw-r--r--
2017-05-15 21:45
c++
930.77
KB
-rwxrwxrwx
2018-02-14 17:53
c89
428
B
-rwxrwxrwx
2013-06-12 23:03
c89.1.gz
1.33
KB
-rw-r--r--
2013-06-12 23:03
c99
454
B
-rwxrwxrwx
2013-06-12 23:03
c99.1.gz
1.39
KB
-rw-r--r--
2017-04-08 21:18
cc
926.77
KB
-rwxrwxrwx
2018-02-14 17:53
compare
10.24
KB
-rwxr-xr-x
2022-05-14 01:05
compare-im6
10.24
KB
-rwxr-xr-x
2022-05-14 01:05
compare-im6.1.gz
1.76
KB
-rw-r--r--
2022-05-14 01:05
compare.1.gz
1.76
KB
-rw-r--r--
2022-05-14 01:05
composite
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
composite-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
composite-im6.1.gz
2.38
KB
-rw-r--r--
2022-05-14 01:05
composite.1.gz
2.38
KB
-rw-r--r--
2022-05-14 01:05
conjure
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
conjure-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
conjure-im6.1.gz
929
B
-rw-r--r--
2022-05-14 01:05
conjure.1.gz
929
B
-rw-r--r--
2022-05-14 01:05
convert
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
convert-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
convert-im6.1.gz
5.55
KB
-rw-r--r--
2022-05-14 01:05
convert.1.gz
5.55
KB
-rw-r--r--
2022-05-14 01:05
cpp
930.77
KB
-rwxrwxrwx
2018-02-14 17:53
display
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
display-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
display-im6.1.gz
2.85
KB
-rw-r--r--
2022-05-14 01:05
display.1.gz
2.85
KB
-rw-r--r--
2022-05-14 01:05
editor
220.04
KB
-rwxr-xr-x
2017-01-11 03:10
editor.1.gz
5.18
KB
-rw-r--r--
2017-01-11 03:10
ex
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
ex.1.gz
5.29
KB
-rw-r--r--
2022-06-19 12:00
ex.fr.1.gz
6.37
KB
-rw-r--r--
2022-06-19 12:00
ex.it.1.gz
5.96
KB
-rw-r--r--
2022-06-19 12:00
ex.ja.1.gz
5.79
KB
-rw-r--r--
2022-06-19 12:00
ex.pl.1.gz
6.15
KB
-rw-r--r--
2022-06-19 12:00
ex.ru.1.gz
6.96
KB
-rw-r--r--
2022-06-19 12:00
faked.1.gz
1.16
KB
-rw-r--r--
2017-01-17 02:29
faked.es.1.gz
1.42
KB
-rw-r--r--
2017-01-17 02:29
faked.fr.1.gz
1.49
KB
-rw-r--r--
2017-01-17 02:29
faked.sv.1.gz
1.32
KB
-rw-r--r--
2017-01-17 02:29
fakeroot
3.8
KB
-rwxrwxrwx
2017-01-17 02:29
fakeroot.1.gz
3.91
KB
-rw-r--r--
2017-01-17 02:29
fakeroot.es.1.gz
4.38
KB
-rw-r--r--
2017-01-17 02:29
fakeroot.fr.1.gz
4.59
KB
-rw-r--r--
2017-01-17 02:29
fakeroot.sv.1.gz
4.26
KB
-rw-r--r--
2017-01-17 02:29
from
10.3
KB
-rwxrwxrwx
2017-04-12 13:22
from.1.gz
1.47
KB
-rw-r--r--
2017-04-12 13:22
identify
6.23
KB
-rwxr-xr-x
2022-05-14 01:05
identify-im6
6.23
KB
-rwxr-xr-x
2022-05-14 01:05
identify-im6.1.gz
2.04
KB
-rw-r--r--
2022-05-14 01:05
identify.1.gz
2.04
KB
-rw-r--r--
2022-05-14 01:05
import
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
import-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
import-im6.1.gz
2.15
KB
-rw-r--r--
2022-05-14 01:05
import.1.gz
2.15
KB
-rw-r--r--
2022-05-14 01:05
js
71.94
MB
-rwxr-xr-x
2023-02-16 16:22
js.1.gz
7.22
KB
-rw-r--r--
2023-02-17 01:00
lft
2.43
KB
-rwxrwxrwx
2016-08-29 17:45
lft.1.gz
7.3
KB
-rw-r--r--
2016-08-29 17:45
libtxc-dxtn-x86_64-linux-gnu
229.86
KB
-rw-r--r--
2016-11-23 11:55
locate
74.44
KB
-rwxrwxrwx
2017-02-18 16:37
locate.1.gz
3.68
KB
-rw-r--r--
2017-02-18 16:37
lzcat
75.38
KB
-rwxr-xr-x
2022-04-10 10:53
lzcat.1.gz
19.87
KB
-rw-r--r--
2022-04-10 10:53
lzcmp
6.48
KB
-rwxr-xr-x
2022-04-10 10:53
lzcmp.1.gz
664
B
-rw-r--r--
2022-04-10 10:53
lzdiff
6.48
KB
-rwxr-xr-x
2022-04-10 10:53
lzdiff.1.gz
664
B
-rw-r--r--
2022-04-10 10:53
lzegrep
5.77
KB
-rwxr-xr-x
2022-04-10 10:53
lzegrep.1.gz
700
B
-rw-r--r--
2022-04-10 10:53
lzfgrep
5.77
KB
-rwxr-xr-x
2022-04-10 10:53
lzfgrep.1.gz
700
B
-rw-r--r--
2022-04-10 10:53
lzgrep
5.77
KB
-rwxr-xr-x
2022-04-10 10:53
lzgrep.1.gz
700
B
-rw-r--r--
2022-04-10 10:53
lzless
1.76
KB
-rwxr-xr-x
2022-04-10 10:53
lzless.1.gz
743
B
-rw-r--r--
2022-04-10 10:53
lzma
75.38
KB
-rwxr-xr-x
2022-04-10 10:53
lzma.1.gz
19.87
KB
-rw-r--r--
2022-04-10 10:53
lzmore
2.11
KB
-rwxr-xr-x
2022-04-10 10:53
lzmore.1.gz
636
B
-rw-r--r--
2022-04-10 10:53
mogrify
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
mogrify-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
mogrify-im6.1.gz
5.53
KB
-rw-r--r--
2022-05-14 01:05
mogrify.1.gz
5.53
KB
-rw-r--r--
2022-05-14 01:05
montage
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
montage-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
montage-im6.1.gz
2.83
KB
-rw-r--r--
2022-05-14 01:05
montage.1.gz
2.83
KB
-rw-r--r--
2022-05-14 01:05
mt
71.27
KB
-rwxr-xr-x
2016-11-29 13:31
mt.1.gz
1.43
KB
-rw-r--r--
2016-11-29 13:31
my.cnf
869
B
-rw-r--r--
2020-10-12 19:40
nawk
646.72
KB
-rwxrwxrwx
2017-01-25 17:06
nawk.1.gz
28.17
KB
-rw-r--r--
2017-01-25 17:06
nodejs
71.94
MB
-rwxr-xr-x
2023-02-16 16:22
nodejs.1.gz
7.22
KB
-rw-r--r--
2023-02-17 01:00
pager
161.82
KB
-rwxr-xr-x
2016-02-28 12:28
pager.1.gz
19.94
KB
-rw-r--r--
2016-02-28 12:28
pbr
152
B
-rwxrwxrwx
2016-09-21 16:14
phar
14.48
KB
-rwxr-xr-x
2021-10-26 19:51
phar.1.gz
2.74
KB
-rw-r--r--
2021-10-26 19:51
phar.phar
14.48
KB
-rwxr-xr-x
2021-10-26 19:51
phar.phar.1.gz
36
B
-rw-r--r--
2021-10-26 19:51
php
4.19
MB
-rwxr-xr-x
2021-10-26 19:51
php-cgi
4.09
MB
-rwxr-xr-x
2021-10-26 19:51
php-cgi-bin
4.09
MB
-rwxr-xr-x
2021-10-26 19:51
php-cgi.1.gz
35
B
-rw-r--r--
2021-10-26 19:51
php-config
4.07
KB
-rwxr-xr-x
2021-10-26 19:51
php-config.1.gz
862
B
-rw-r--r--
2021-10-26 19:51
php.1.gz
3.56
KB
-rw-r--r--
2021-10-26 19:51
phpize
4.58
KB
-rwxr-xr-x
2021-10-26 19:51
phpize.1.gz
590
B
-rw-r--r--
2021-10-26 19:51
pico
220.04
KB
-rwxr-xr-x
2017-01-11 03:10
pico.1.gz
5.18
KB
-rw-r--r--
2017-01-11 03:10
pinentry
54.46
KB
-rwxrwxrwx
2017-02-06 09:56
pinentry.1.gz
1.38
KB
-rw-r--r--
2017-02-06 09:56
rcp
86.14
KB
-rwxrwxrwx
2019-07-15 15:32
rcp.1.gz
2.38
KB
-rw-r--r--
2019-07-15 15:32
rename
3.1
KB
-rwxrwxrwx
2015-06-05 00:55
rename.1.gz
2.72
KB
-rw-r--r--
2015-06-05 00:55
rlogin
714.86
KB
-rwxrwxrwx
2019-07-15 15:32
rlogin.1.gz
14.34
KB
-rw-r--r--
2019-07-15 15:32
rmt
55.03
KB
-rwxr-xr-x
2021-11-27 22:50
rmt.8.gz
2.34
KB
-rw-r--r--
2021-11-27 22:50
rsh
714.86
KB
-rwxrwxrwx
2019-07-15 15:32
rsh.1.gz
14.34
KB
-rw-r--r--
2019-07-15 15:32
rview
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
rvim
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
stream
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
stream-im6
6.21
KB
-rwxr-xr-x
2022-05-14 01:05
stream-im6.1.gz
1.41
KB
-rw-r--r--
2022-05-14 01:05
stream.1.gz
1.41
KB
-rw-r--r--
2022-05-14 01:05
suexec
18.07
KB
-rwsr-xr--
2022-03-18 13:54
suexec.8.gz
1.38
KB
-rw-r--r--
2022-03-18 13:54
tcptraceroute
1.56
KB
-rwxrwxrwx
2016-08-29 17:45
tcptraceroute.8.gz
7.3
KB
-rw-r--r--
2016-08-29 17:45
telnet
104.42
KB
-rwxr-xr-x
2016-11-07 19:06
telnet.1.gz
8.8
KB
-rw-r--r--
2016-11-07 19:06
traceproto
2.82
KB
-rwxrwxrwx
2016-08-29 17:45
traceproto.1.gz
7.3
KB
-rw-r--r--
2016-08-29 17:45
traceroute
67.16
KB
-rwxrwxrwx
2016-08-29 17:45
traceroute.1.gz
7.3
KB
-rw-r--r--
2016-08-29 17:45
traceroute.sbin
67.16
KB
-rwxrwxrwx
2016-08-29 17:45
traceroute6
67.16
KB
-rwxrwxrwx
2016-08-29 17:45
traceroute6.1.gz
7.3
KB
-rw-r--r--
2016-08-29 17:45
unlzma
75.38
KB
-rwxr-xr-x
2022-04-10 10:53
unlzma.1.gz
19.87
KB
-rw-r--r--
2022-04-10 10:53
updatedb
8.95
KB
-rwxrwxrwx
2017-02-18 16:37
updatedb.1.gz
1.88
KB
-rw-r--r--
2017-02-18 16:37
vi
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
vi.1.gz
5.29
KB
-rw-r--r--
2022-06-19 12:00
vi.fr.1.gz
6.37
KB
-rw-r--r--
2022-06-19 12:00
vi.it.1.gz
5.96
KB
-rw-r--r--
2022-06-19 12:00
vi.ja.1.gz
5.79
KB
-rw-r--r--
2022-06-19 12:00
vi.pl.1.gz
6.15
KB
-rw-r--r--
2022-06-19 12:00
vi.ru.1.gz
6.96
KB
-rw-r--r--
2022-06-19 12:00
view
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
view.1.gz
5.29
KB
-rw-r--r--
2022-06-19 12:00
view.fr.1.gz
6.37
KB
-rw-r--r--
2022-06-19 12:00
view.it.1.gz
5.96
KB
-rw-r--r--
2022-06-19 12:00
view.ja.1.gz
5.79
KB
-rw-r--r--
2022-06-19 12:00
view.pl.1.gz
6.15
KB
-rw-r--r--
2022-06-19 12:00
view.ru.1.gz
6.96
KB
-rw-r--r--
2022-06-19 12:00
vim
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
vimdiff
2.31
MB
-rwxr-xr-x
2022-06-19 12:00
w
18.07
KB
-rwxrwxrwx
2018-05-17 12:56
w.1.gz
1.25
KB
-rw-r--r--
2018-05-17 12:56
write
14.42
KB
-rwxrwxrwx
2017-04-12 13:22
write.1.gz
1.87
KB
-rw-r--r--
2017-04-12 13:22
x-terminal-emulator
419
B
-rwxr-xr-x
2022-02-06 18:11
x-terminal-emulator.1.gz
518
B
-rw-r--r--
2022-02-06 18:11
Save
Rename
#! /bin/sh # updatedb -- build a locate pathname database # Copyright (C) 1994, 1996-1997, 2000-2001, 2003-2006, 2010-2011, 2016 # Free Software Foundation, Inc. # # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program. If not, see <http://www.gnu.org/licenses/>. # csh original by James Woods; sh conversion by David MacKenzie. #exec 2> /tmp/updatedb-trace.txt #set -x version=' updatedb (GNU findutils) 4.7.0-git Copyright (C) 2007,2008,2009,2010 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html> This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Written by Eric B. Decker, James Youngman, and Kevin Dalley. ' # File path names are not actually text, anyway (since there is no # mechanism to enforce any constraint that the basename of a # subdirectory has the same character encoding as the basename of its # parent). The practical effect is that, depending on the way a # particular system is configured and the content of its filesystem, # passing all the file names in the system through "sort" may generate # character encoding errors in text-based tools like "sort". To avoid # this, we set LC_ALL=C. This will, presumably, not work perfectly on # systems where LC_ALL is not the way to do locale configuration or # some other seting can override this. LC_ALL=C export LC_ALL # We can't use substitution on PACKAGE_URL below because it # (correctly) points to http://www.gnu.org/software/findutils/ instead # of the bug reporting page. usage="\ Usage: $0 [--findoptions='-option1 -option2...'] [--localpaths='dir1 dir2...'] [--netpaths='dir1 dir2...'] [--prunepaths='dir1 dir2...'] [--prunefs='fs1 fs2...'] [--output=dbfile] [--netuser=user] [--localuser=user] [--dbformat] [--version] [--help] Please see also the documentation at http://www.gnu.org/software/findutils/. Report (and track progress on fixing) bugs in the updatedb program via the GNU findutils bug-reporting page at https://savannah.gnu.org/bugs/?group=findutils or, if you have no web access, by sending email to <bug-findutils@gnu.org>. " changeto=/ for arg do # If we are unable to fork, the back-tick operator will # fail (and the shell will emit an error message). When # this happens, we exit with error value 71 (EX_OSERR). # Alternative candidate - 75, EX_TEMPFAIL. opt=`echo $arg|sed 's/^\([^=]*\).*/\1/'` || exit 71 val=`echo $arg|sed 's/^[^=]*=\(.*\)/\1/'` || exit 71 case "$opt" in --findoptions) FINDOPTIONS="$val" ;; --localpaths) SEARCHPATHS="$val" ;; --netpaths) NETPATHS="$val" ;; --prunepaths) PRUNEPATHS="$val" ;; --prunefs) PRUNEFS="$val" ;; --output) LOCATE_DB="$val" ;; --netuser) NETUSER="$val" ;; --localuser) LOCALUSER="$val" ;; --changecwd) changeto="$val" ;; --dbformat) dbformat="$val" ;; --version) fail=0; echo "$version" || fail=1; exit $fail ;; --help) fail=0; echo "$usage" || fail=1; exit $fail ;; *) echo "updatedb: invalid option $opt Try '$0 --help' for more information." >&2 exit 1 ;; esac done frcode_options="" case "$dbformat" in "") # Default, use LOCATE02 ;; LOCATE02) ;; slocate) frcode_options="$frcode_options -S 1" ;; *) # The "old" database format is no longer supported. echo "Unsupported locate database format ${dbformat}: Supported formats are:" >&2 echo "LOCATE02, slocate" >&2 exit 1 esac if true then sort="/usr/bin/sort -z" print_option="-print0" frcode_options="$frcode_options -0" else sort="/usr/bin/sort" print_option="-print" fi getuid() { # format of "id" output is ... # uid=1(daemon) gid=1(other) # for `id's that don't understand -u id | cut -d'(' -f 1 | cut -d'=' -f2 } # figure out if su supports the -s option select_shell() { if su "$1" -s $SHELL -c false < /dev/null ; then # No. echo "" else if su "$1" -s $SHELL -c true < /dev/null ; then # Yes. echo "-s $SHELL" else # su is unconditionally failing. We won't be able to # figure out what is wrong, so be conservative. echo "" fi fi } # You can set these in the environment, or use command-line options, # to override their defaults: # Any global options for find? : ${FINDOPTIONS=} # What shell shoud we use? We should use a POSIX-ish sh. : ${SHELL="/bin/sh"} # Non-network directories to put in the database. : ${SEARCHPATHS="/"} # Network (NFS, AFS, RFS, etc.) directories to put in the database. : ${NETPATHS=} # Directories to not put in the database, which would otherwise be. : ${PRUNEPATHS=" /afs /amd /proc /sfs /tmp /usr/tmp /var/tmp "} # Trailing slashes result in regex items that are never matched, which # is not what the user will expect. Therefore we now reject such # constructs. for p in $PRUNEPATHS; do case "$p" in /*/) echo "$0: $p: pruned paths should not contain trailing slashes" >&2 exit 1 esac done # The same, in the form of a regex that find can use. test -z "$PRUNEREGEX" && PRUNEREGEX=`echo $PRUNEPATHS|sed -e 's,^,\\\(^,' -e 's, ,$\\\)\\\|\\\(^,g' -e 's,$,$\\\),'` # The database file to build. : ${LOCATE_DB=/var/cache/locate/locatedb} # Directory to hold intermediate files. if test -z "$TMPDIR"; then if test -d /var/tmp; then : ${TMPDIR=/var/tmp} elif test -d /usr/tmp; then : ${TMPDIR=/usr/tmp} else : ${TMPDIR=/tmp} fi fi export TMPDIR # The user to search network directories as. : ${NETUSER=daemon} # The directory containing the subprograms. if test -n "$LIBEXECDIR" ; then : LIBEXECDIR already set, do nothing else : ${LIBEXECDIR=/usr/lib/x86_64-linux-gnu/locate} fi # The directory containing find. if test -n "$BINDIR" ; then : BINDIR already set, do nothing else : ${BINDIR=/usr/bin} fi # The names of the utilities to run to build the database. : ${find:=${BINDIR}/find} : ${frcode:=${LIBEXECDIR}/frcode} make_tempdir () { # This implementation is adapted from the GNU Autoconf manual. { tmp=` (umask 077 && mktemp -d "$TMPDIR/updatedbXXXXXX") 2>/dev/null ` && test -n "$tmp" && test -d "$tmp" } || { # This method is less secure than mktemp -d, but it's a fallback. # # We use $$ as well as $RANDOM since $RANDOM may not be available. # We also add a time-dependent suffix. This is actually somewhat # predictable, but then so is $$. POSIX does not require date to # support +%N. ts=`date +%N%S || date +%S 2>/dev/null` tmp="$TMPDIR"/updatedb"$$"-"${RANDOM:-}${ts}" (umask 077 && mkdir "$tmp") } echo "$tmp" } checkbinary () { if test -x "$1" ; then : ok else eval echo "updatedb needs to be able to execute $1, but cannot." >&2 exit 1 fi } for binary in $find $frcode do checkbinary $binary done : ${PRUNEFS=" 9P NFS afs autofs cifs coda devfs devpts ftpfs iso9660 mfs ncpfs nfs nfs4 proc shfs smbfs sysfs "} if test -n "$PRUNEFS"; then prunefs_exp=`echo $PRUNEFS |sed -e 's/\([^ ][^ ]*\)/-o -fstype \1/g' \ -e 's/-o //' -e 's/$/ -o/'` else prunefs_exp='' fi # Make and code the file list. # Sort case insensitively for users' convenience. rm -f $LOCATE_DB.n trap 'rm -f $LOCATE_DB.n; exit' HUP TERM if { cd "$changeto" if test -n "$SEARCHPATHS"; then if [ "$LOCALUSER" != "" ]; then # : A1 su $LOCALUSER `select_shell $LOCALUSER` -c \ "$find $SEARCHPATHS $FINDOPTIONS \ \\( $prunefs_exp \ -type d -regex '$PRUNEREGEX' \\) -prune -o $print_option" else # : A2 $find $SEARCHPATHS $FINDOPTIONS \ \( $prunefs_exp \ -type d -regex "$PRUNEREGEX" \) -prune -o $print_option fi fi if test -n "$NETPATHS"; then myuid=`getuid` if [ "$myuid" = 0 ]; then # : A3 su $NETUSER `select_shell $NETUSER` -c \ "$find $NETPATHS $FINDOPTIONS \\( -type d -regex '$PRUNEREGEX' -prune \\) -o $print_option" || exit $? else # : A4 $find $NETPATHS $FINDOPTIONS \( -type d -regex "$PRUNEREGEX" -prune \) -o $print_option || exit $? fi fi } | $sort | $frcode $frcode_options > $LOCATE_DB.n then : OK so far true else rv=$? echo "Failed to generate $LOCATE_DB.n" >&2 rm -f $LOCATE_DB.n exit $rv fi # To avoid breaking locate while this script is running, put the # results in a temp file, then rename it atomically. if test -s $LOCATE_DB.n; then chmod 644 ${LOCATE_DB}.n mv ${LOCATE_DB}.n $LOCATE_DB else echo "updatedb: new database would be empty" >&2 rm -f $LOCATE_DB.n fi exit 0