Displaying 20 results from an estimated 657 matches for "tmpfile".
Did you mean:
tempfile
2016 Dec 11
3
[PATCH 0/2] generic function for temporary path generation
Cosmetic change as suggested in this previous patch:
https://www.redhat.com/archives/libguestfs/2016-November/msg00111.html
Matteo Cafasso (2):
lib: generic function for temporary path generation
lib: use guestfs_int_make_temp_path to generate temporary files
src/drives.c | 5 ++---
src/file.c | 22 +++++++++-------------
src/guestfs-internal.h | 1 +
src/journal.c
2016 Dec 11
0
[PATCH 2/2] lib: use guestfs_int_make_temp_path to generate temporary files
...d, 15 insertions(+), 33 deletions(-)
diff --git a/src/drives.c b/src/drives.c
index 1e3b0af..1e04f81 100644
--- a/src/drives.c
+++ b/src/drives.c
@@ -421,7 +421,8 @@ create_drive_dev_null (guestfs_h *g,
data->format = "raw";
}
- if (guestfs_int_lazy_make_tmpdir (g) == -1)
+ tmpfile = guestfs_int_make_temp_path (g, "devnull");
+ if (tmpfile == NULL)
return NULL;
/* Because we create a special file, there is no point forcing qemu
@@ -429,8 +430,6 @@ create_drive_dev_null (guestfs_h *g,
*/
data->readonly = false;
- tmpfile = safe_asprintf (g, &quo...
2020 Apr 03
4
The finalizer of the externalPtr does not work when closing R?
...saving the
global environment. Since the external pointer is removed when closing R,
so the finalizer should be called in this procedure. However, the temp file
still exists after closing the R session.
Here is the test code(which can be found in inst/example/example.R)
## Create a temporary file
tmpFile <- paste0(system.file(package = "testPackage"), "/tmp")
tmpFile
file.create(tmpFile)
file.exists(tmpFile)
## Create an external pointer whose finalizer will delete
## the file when the variable is not in used
x <- testPackage:::makeExtPtr(file.remove,tmpFile)
## GC is work...
2016 Sep 17
0
[PATCH 4/4] TSK: small refactoring
...guestfs_h *, FILE *, struct guestfs_tsk_dirent_list *);
+static char *make_temp_file (guestfs_h *, const char *);
struct guestfs_tsk_dirent_list *
guestfs_impl_filesystem_walk (guestfs_h *g, const char *mountable)
{
int ret = 0;
- CLEANUP_FCLOSE FILE *fp = NULL;
CLEANUP_UNLINK_FREE char *tmpfile = NULL;
- ret = guestfs_int_lazy_make_tmpdir (g);
- if (ret < 0)
- return NULL;
-
- tmpfile = safe_asprintf (g, "%s/filesystem_walk%d", g->tmpdir, ++g->unique);
+ tmpfile = make_temp_file (g, "filesystem_walk");
ret = guestfs_internal_filesystem_walk (g, mou...
2014 Nov 20
2
[PATCH 0/2] appliance: When running systemd-tmpfiles, pass --boot
https://bugzilla.redhat.com/show_bug.cgi?id=1165785
Since the --boot option is relatively new (added 2013-12), I suspect
this will break older versions of systemd. However it should
be fine for all currently supported versions of Fedora.
Rich.
2016 May 25
4
centos7 tmpfiles.d deleted outdate files
Hi all,
I use centos7 and don't want to use tmpwatch as well as crond.
I have a question to use `systemd-tmpfiles-clean.service` with my custom
configured file in `tmpfiles.d` to delete outdated files periodically in
some log dir.
I have a `tmpfiles.d` configured file in `/etc/tmpfiles.d` named
`my_log.conf` in following contents.
```
#Type Path Mode UID GID Age Arg
r /chenqiang 0775 root root...
2017 Mar 10
1
[PATCH] appliance: run systemd-tmpfiles also for /var/run
Commit a6330e9d3af0f5286f1d53d909fd868387b67f69 enabled /run for
systemd-tmpfiles: while this works fine in most of the cases, there are
few tmpfiles configurations that still references /var/run instead of
/run. As result, include also /var/run in the systemd-tmpfiles
execution.
---
appliance/init | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/appliance/...
2020 Aug 28
2
EL8: SElinux / dac_override / tmpwatch
Hi, I'm moving some old stuff from EL6 to EL8 and one setup has a
cron job which uses "tmpwatch -umc $dir" to clean some directories
(/etc/cron.daily/tmpwatch). It seems that this triggers this AVC
(SElinux mode is enforcing):
type=AVC msg=audit(1598576896.772:4267): avc: denied { dac_override }
for pid=11013 comm="tmpwatch" capability=1
2016 Sep 17
7
[PATCH 0/4] New API - find_block
This series is ready for review but requires the previous one to be merged first:
https://www.redhat.com/archives/libguestfs/2016-September/msg00101.html
The find_block API allows the User to search all the filesystem entries
referring to a given data block and returns a tsk_dirent structure
for each of them.
Use case examples:
- Check whether a block containing a deleted file has been re-used
2016 Mar 29
4
[PATCH] appliance: Copy /etc/machine-id from host system into the appliance.
Currently when the appliance is booted we see warning messages like
these ones:
[/usr/lib/tmpfiles.d/systemd.conf:26] Failed to replace specifiers: /run/log/journal/%m
[/usr/lib/tmpfiles.d/systemd.conf:28] Failed to replace specifiers: /run/log/journal/%m
[/usr/lib/tmpfiles.d/systemd.conf:29] Failed to replace specifiers: /run/log/journal/%m
They are apparently harmless, but are caused because...
2017 Jun 26
2
Install locks up my server
...e is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE.'
+ help='
Try `config.guess --help'\'' for more information.'
+ test 0 -gt 0
+ test 0 '!=' 0
+ trap 'exit 1' 1 2 15
+ set_cc_for_build='
trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp
2>/dev/null) && exit \$exitcode" 0 ;
trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2
13 15 ;
: ${TMPDIR=/tmp} ;
{ tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` &&...
2017 Oct 09
1
how to prevent files and directories from being deleted?
...ar/run is persistent, then it?s not intended for CentOS7.
Or it is intended for Centos and not done how it needs to be because
Centos differs from the FHS ...
> If the EPEL package did too, then there could be serious problems with
> that package. However, I see that it has a
> /usr/lib/tmpfiles.d/lighttpd.conf, so it is ok.
Hm, then how come it?s so troublesome?
I have /usr/lib/tmpfiles.d/httpd.conf. It seems to have remained
because I had httpd (which is apache) installed and then switched to
lighttpd and removed httpd.
httpd is no longer installed. The only installed package refer...
2016 May 26
0
centos7 tmpfiles.d deleted outdate files
Hi all,
I use centos7 and don't want to use tmpwatch as well as crond.
I have a question to use `systemd-tmpfiles-clean.service` with my custom
configured file in `tmpfiles.d` to delete outdated files periodically in
some log dir.
I have a `tmpfiles.d` configured file in `/etc/tmpfiles.d` named
`my_log.conf` in following contents.
```
#Type Path Mode UID GID Age Arg
r /chenqiang 0775 root root...
2016 May 26
0
centos7 tmpfiles.d deleted outdate files
Would some one help me for this question? thanks very much.
On 2016?05?25? 14:18, Qiang Chen wrote:
> Hi all,
>
> I use centos7 and don't want to use tmpwatch as well as crond.
>
> I have a question to use `systemd-tmpfiles-clean.service` with my
> custom configured file in `tmpfiles.d` to delete outdated files
> periodically in some log dir.
>
> I have a `tmpfiles.d` configured file in `/etc/tmpfiles.d` named
> `my_log.conf` in following contents.
>
> ```
> #Type Path Mode UID GID...
2020 Apr 03
0
The finalizer of the externalPtr does not work when closing R?
...nce the external pointer is removed when closing R,
> so the finalizer should be called in this procedure. However, the temp file
> still exists after closing the R session.
>
> Here is the test code(which can be found in inst/example/example.R)
>
> ## Create a temporary file
> tmpFile <- paste0(system.file(package = "testPackage"), "/tmp")
> tmpFile
> file.create(tmpFile)
> file.exists(tmpFile)
> ## Create an external pointer whose finalizer will delete
> ## the file when the variable is not in used
> x <- testPackage:::makeExtPtr(file...
2008 May 01
3
[LLVMdev] building cross llvm-gcc for new target
...m.org sources are tracking the Subversion
trunk, but my problem is probably not related to any ongoing churn
there. I'm doing something dumb, and I need to figure out what.
I get errors trying to build from crtbegin.o, and they look like this
(replacing the long temporary filename with $TMPFILE):
> $TMPFILE: Assembler messages:
> $TMPFILE:66: Error: internal_relocation (type: OFFSET_IMM) not fixed
> up
> $TMPFILE:71: Error: internal_relocation (type: OFFSET_IMM) not fixed
> up
> $TMPFILE:76: Error: internal_relocation (type: OFFSET_IMM) not fixed
> up
> $TMP...
1998 Nov 25
3
Unix/NT file conversion problems
Hi
We are having some problems - the majority of our files require ascii
transfers between our unix servers and PCs. They are however being
transferred as binary for some reason even though they are just plain
text files. This means (when going from unix to pc) the files come down
without a carriage return at the end of lines. And when going from pc to
unix they end up with ^M on the end of each
2020 Apr 03
0
[External] The finalizer of the externalPtr does not work when closing R?
...nce the external pointer is removed when closing R,
> so the finalizer should be called in this procedure. However, the temp file
> still exists after closing the R session.
>
> Here is the test code(which can be found in inst/example/example.R)
>
> ## Create a temporary file
> tmpFile <- paste0(system.file(package = "testPackage"), "/tmp")
> tmpFile
> file.create(tmpFile)
> file.exists(tmpFile)
> ## Create an external pointer whose finalizer will delete
> ## the file when the variable is not in used
> x <- testPackage:::makeExtPtr(file...
2015 Nov 30
1
restarting samba using a cron job on Debian
...plication is
broken and restart the service accordingly.
-----
#!/bin/sh
#
# check-samba-ad-dc.sh
#
# Stop gap measure to restart the Samba AD DC on WERR_CONNECTION_REFUSED
# https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1357471
# https://bugzilla.samba.org/show_bug.cgi?id=11164
TMPFILE="/tmp/$(basename "$0").$$"
if ! samba-tool drs showrepl > "$TMPFILE" ||
! grep -q 'Last attempt .* successful' "$TMPFILE" ||
grep -q 'Last attempt .* failed' "$TMPFILE"; then
echo "Restarting Samba AD DC at $(dat...
1998 Jun 02
0
SAMBA digest 1706
...typical installations.
>
> Thanks for any help you can offer,
>
> - Jeff Wiegley
The script I'm running, once a minute from cron, as root:
-------------------------------------------------------------------
#!/bin/sh
#
# If master host loses samba browse master, restart nmbd.
#
TMPFILE=/root/tmp/.grab$$
MASTER=lolead
/usr/bin/smbclient -N -U guest -L ${MASTER} |\
/bin/sed -n '/Workgroup..*Master/,$p' > ${TMPFILE}
b=$(/bin/fgrep ${MASTER} ${TMPFILE})
if [ "$b" ]; then
if [ -f /root/RESTART_NMBD ]; then
rm -f /root/RESTART_NMBD
mail root <<EOF
$...