search for: mktemp

Displaying 20 results from an estimated 503 matches for "mktemp".

Did you mean: mkdtemp
2004 May 26
5
Bug#251046: logcheck: invalid mktemp -p option
Package: logcheck Version: 1.1.1-13.1woody1 Severity: important logcheck line 56 uses "TMPDIR=$(mktemp -d -p ..." but mktemp from woody doesn't accept -p option Cheers, Chris -- System Information Debian Release: 3.0 Kernel Version: Linux ethlife-a 2.4.26-vs1.27 #4 SMP Mit Apr 28 15:20:15 MEST 2004 i686 unknown Versions of the packages logcheck depends on: ii cron 3.0pl1-...
2012 Oct 14
1
[PATCH] NEW API: mktemp
...LES | 2 ++ src/MAX_PROC_NR | 2 +- 5 files changed, 104 insertions(+), 3 deletions(-) diff --git a/daemon/dir.c b/daemon/dir.c index aed45d6..b58cc2a 100644 --- a/daemon/dir.c +++ b/daemon/dir.c @@ -212,3 +212,64 @@ do_mkdtemp (const char *template) return r; } + +char * +do_mktemp (const char *template, + int dir, + const char *suffix) +{ + char *dest_name = NULL; + size_t suffix_len = 0; + char *r; + int err; + if (!(optargs_bitmask & GUESTFS_MKTEMP_DIR_BITMASK)) + dir = 0; + + if (optargs_bitmask & GUESTFS_MKTEMP_SUFFIX_BITMASK) { +...
2009 Jul 21
1
[PATCH node-image] Moved all temporary files into a single work directory to clean up.
...e at redhat.com> --- autotest.sh | 20 +++++++++++--------- 1 files changed, 11 insertions(+), 9 deletions(-) diff --git a/autotest.sh b/autotest.sh index c9f8a2d..d658cf3 100755 --- a/autotest.sh +++ b/autotest.sh @@ -40,6 +40,7 @@ # an ISO file. ME=$(basename "$0") +WORKDIR=$(mktemp -d) warn() { printf '%s: %s\n' "$ME" "$*" >&2; } die() { warn "$*"; exit 1; } debug() { if $debugging; then log "[DEBUG] %s" "$*"; fi } @@ -140,7 +141,7 @@ start_dnsmasq () { --dhcp-boot=tftpboot/pxelinux.0...
2004 Aug 22
0
[PATCH] openbsd-compat/mktemp.c: Compile time error with gcc 3.4
Hi, the below patch avoids a compile time error on Cygwin, when using gcc 3.4.x. The #ifdef is superfluous anyway. Thanks, Corinna Index: openbsd-compat/mktemp.c =================================================================== RCS file: /cvs/openssh_cvs/openbsd-compat/mktemp.c,v retrieving revision 1.6 diff -p -u -r1.6 mktemp.c --- openbsd-compat/mktemp.c 24 Nov 2003 02:33:34 -0000 1.6 +++ openbsd-compat/mktemp.c 22 Aug 2004 17:19:13 -0000...
2020 May 31
4
Simple backup of maildir folder
On 29 May 2020, at 23:49, Admin Beckspaced <admin at beckspaced.com> wrote: > I also have maildir as mailbox format and use the following script to do daily backups > > https://github.com/tachtler/dovecot-backup A couple of notes on this quite useful script: My mktemp does not support -p (FreeBSD 12.1) is I had to change the script to: DIR_TEMP=$($MKTEMP_COMMAND -d $TMP_FOLDER -t $SCRIPT_NAME) Which gives a temp folder along the lines of /tmp/dovecot_backup.IiZ00GyZ I also changed the various date strings to date -Iseconds and date -R for the mail handling s...
2020 Mar 28
0
[klibc:update-dash] dash: builtin: Default to mktemp, not tempfile
...a=commit;h=b0626ba1febdb535a674743070dfc3f3c5735b29 Author: Andrej Shadura <andrew.shadura at collabora.co.uk> AuthorDate: Fri, 7 Sep 2018 10:34:11 +0200 Committer: Ben Hutchings <ben at decadent.org.uk> CommitDate: Sat, 28 Mar 2020 21:42:55 +0000 [klibc] dash: builtin: Default to mktemp, not tempfile [ dash commit ad072645af04c31300c84d2840fcf1a8d48588ec ] Don't use tempfile, as it currently runs tempnam(), which is insecure and fails under pseudo(1). Signed-off-by: Andrej Shadura <andrew.shadura at collabora.co.uk> Signed-off-by: Herbert Xu <herbert at gondor.apan...
2013 Aug 15
1
/usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found
When installing stackdriver on an ubuntu 12.04 machine, I get the following error: change from notrun to 0 failed: /usr/bin/apt-key: 8: /usr/bin/apt-key: mktemp: not found Based on the instructions here <http://feedback.stackdriver.com/knowledgebase/articles/206135-ubuntu> on their website, my resource is as follows: exec { ''add-stackdriver-key'': command => ''curl --silent https://www.stackdriver.com/RPM-GPG-KEY...
2018 Jun 25
1
works with 4.7.6, fails with 4.8.2: echo > $(mktemp /mnt/XXXXXX)
...est,vers=1.0 /mnt The client (ubuntu 18.10 dev) is using cifs-utils 2:6.8-2 from debian (it's a sync). Client and server are the same machine (localhost). When the server is 2:4.8.2+dfsg-2ubuntu1 (a package I'm preparing, based on debian's 4.8.2+dfsg-2), this fails: root at ubuntu:~# mktemp /mnt/test.XXXXXX /mnt/test.iev5IU root at ubuntu:~# echo hello > /mnt/test.iev5IU -su: /mnt/test.iev5IU: Permission denied root at ubuntu:~# l /mnt/test.iev5IU -rw-------+ 1 nobody nogroup 0 Jun 25 17:40 /mnt/test.iev5IU root at ubuntu:~# When the server is running 2:4.7.6+dfsg~ubuntu-0ubuntu2...
2011 Nov 09
0
CEBA-2011:1443 CentOS 5 i386 mktemp FASTTRACK Update
CentOS Errata and Bugfix Advisory 2011:1443 Upstream details at : http://rhn.redhat.com/errata/RHBA-2011-1443.html The following updated files have been uploaded and are currently syncing to the mirrors: ( md5sum Filename ) i386: a7c2968f25a4c0a2d49c1ed7f2b4ef01 mktemp-1.5-24.el5.i386.rpm Source: 405b59bf4b089a534dc478a415397290 mktemp-1.5-24.el5.src.rpm -- Johnny Hughes CentOS Project { http://www.centos.org/ } irc: hughesjr, #centos at irc.freenode.net
2011 Nov 09
0
CEBA-2011:1443 CentOS 5 x86_64 mktemp FASTTRACK Update
CentOS Errata and Bugfix Advisory 2011:1443 Upstream details at : http://rhn.redhat.com/errata/RHBA-2011-1443.html The following updated files have been uploaded and are currently syncing to the mirrors: ( md5sum Filename ) x86_64: 61443c59583339251051fa3e6c214fe9 mktemp-1.5-24.el5.x86_64.rpm Source: 405b59bf4b089a534dc478a415397290 mktemp-1.5-24.el5.src.rpm -- Johnny Hughes CentOS Project { http://www.centos.org/ } irc: hughesjr, #centos at irc.freenode.net
2007 Jun 26
0
Bug#429384: logcheck: Logcheck depends on mktemp
Package: logcheck Version: 1.2.56 Followup-For: Bug #429384 I get the following message in my e-mail from cron: Cron <logcheck at entercom> if [ -x /usr/sbin/logcheck ]; then nice -n10 /usr/sbin/logcheck; fi /usr/sbin/logcheck: line 645: mktemp: command not found /usr/sbin/logcheck: line 646: mktemp: command not found rm: too few arguments Try `rm --help' for more information. Patrick -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (500, 'testing') Architecture: i386 (i686) Shell: /bin...
2001 Apr 11
1
mktemp
Has this not been changed to mkstemp just for reason of having to change all of the smbd_mktemp() calls, for portability, or some hidden arcana? Are there any platforms that samba supports that don't have mkstemp? -- Blue Lang http://www.gator.net/~blue Unix Administrator Veritas Software 2315 McMullan Circ...
2004 Jun 30
1
[*] shorewall requirements - which command
...ed from the tarball. When I issued a shorewall start, I received hundreds of errors like: /usr/share/shorewall/firewall: line 5520: /var/lib/shorewall/shorewall-18641: Is a directory I did a shorewall trace start > /tmp/x 2>&1 and reviewed the trace to found the following lines: ++ mktempfile /var/lib/shorewall ++ ''['' -z '''' '']'' ++ find_mktemp +++ which mktemp ++ local mktemp= ++ ''['' -n '''' '']'' ++ MKTEMP=None ++ ''['' 1 -gt 0 '']'' ++ mkdir /var/l...
2007 Jun 17
0
Bug#429384: logcheck should depend on mktemp package
Package: logcheck Version: 1.2.56 Severity: important logcheck requires mktemp to operate (it will abort with a fine, descriptive error message and email), but doesn't actually depend on it. -- grok. -- System Information: Debian Release: lenny/sid APT prefers testing APT policy: (998, 'testing'), (501, 'stable'), (99, 'unstable') Architec...
2002 Aug 02
3
[Bug 377] New: Reduce compiler warnings. Use unsigned args to the ctype.h is*() macros.
...inet_aton.c:128: warning: subscript has type `char' inet_aton.c:131: warning: subscript has type `char' inet_aton.c:133: warning: subscript has type `char' inet_aton.c:155: warning: subscript has type `char' match.c:138: warning: subscript has type `char' mktemp.c:168: warning: subscript has type `char' readpassphrase.c:123: warning: subscript has type `char' scp.c:758: warning: subscript has type `char' sshconnect.c:834: warning: subscript has type `char' Given the possibility of characters outside of the 0 thru 0x7f range and...
2014 Jun 16
2
Print files which would be transfered by rsync (when syncing two directories)
..."very often" without even a tiny bit of a contradiction, I start to have the feeling I have a basic misunderstanding of rsync. Assume one want to get a list of files which would have been transfered by rsync if rsync was requested to sync directories X and Y and one does <code> X=`mktemp` echo "abc" > $X/1 echo "abc1" > $X/2 Y=`mktemp` echo "abc" > $Y/1 echo "abc2" > $Y/2 </code> then I'd expect rsync to update the file $Y/2 with the content of $X/2 and `rsync --dry-run --info=COPY -r -c $X $Y` should print $Y/2 (or $X/2...
2004 May 27
0
Bug#251046: Bug#251046: logcheck: invalid mktemp -p option
Hello For some reason we have debianutils 1.15 on our system. (Strange; maybe this is from the first woody release, or maybe dist-upgrade didn't upgrade debianutils upon first attempt when I went from potato to woody (in my experience dist-upgrade usually has to be invoked multiple times to do everything); we only upgrade security packages since then.) Thus, sorry for our superfluous
2000 May 24
0
v2.0.6 problem with unique mktemp() file names for printer spooling files...
Hi, I'm wondering about the spooling capabilities of samba. I have a printable share and a custom printer command. I think normal behaviour for samba is to spool printed files with unique names, like USER1.FG2HTu in the spooling directory. My samba (version 2.0.6 on a Linux 2.2.10, Suse 6.2) does this correctly if the filename from windows has only uppercase letters. But in any other case, no
2008 Aug 29
2
Security issue with javareconf script (PR#12636)
...AC"; then javac_works='not functional' - rm -rf /tmp/A.java /tmp/A.class - echo "public class A { }" > /tmp/A.java - if test -e /tmp/A.java; then - if "${JAVAC}" /tmp/A.java >/dev/null; then - if test -e /tmp/A.class; then + tempdir=`mktemp -d` + echo "public class A { }" > ${tempdir}/A.java + if test -e ${tempdir}/A.java; then + if "${JAVAC}" ${tempdir}/A.java >/dev/null; then + if test -e ${tempdir}/A.class; then javac_works=yes fi fi fi - rm -rf /tmp/A.j...
2018 Nov 09
1
Custom Hooks
On Fri, Nov 09, 2018 at 11:19:43AM +0000, Philipp Schafft wrote: > > pipe=/tmp/testpipe > > There are tools to make tempfiles such as mktemp(1). You can also > consider using $$. > > mkfifo $pipe mktemp makes actual files, not pipes/fifos. -- Paul Martin <pm at nowster.me.uk>