Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 61613 - watchfolder doesn't copy watched file to tempdir
Summary: watchfolder doesn't copy watched file to tempdir
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-08-25 03:22 UTC by norbert kamenicky
Modified: 2006-02-15 13:45 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
New revision of watchfolder with bug fixed.. (watchfolder-0.3.2p3.tgz,79.94 KB, application/octet-stream)
2005-03-06 02:53 UTC, Peter Turczak
Details

Note You need to log in before you can comment on or make changes to this bug.
Description norbert kamenicky 2004-08-25 03:22:45 UTC
I planed to use watchfolder, therefore I emerged watchfolder-0.3.1.1
and made a test to learn how it works ...


Here is the content of my /etc/watchd.conf:
-------start---
mv=/bin/mv
rm=/bin/rm
interval=10
tempdir=/tmp/watch
# uid 5555 belong to user test
uid=5555
[dir1]
uid=5555
dir=/tmp/watch/watchdir
prg=/tmp/watch/test.sh
-----stop----

Then I prepared test dirs/files :
# mkdir -p /tmp/watch/watchdir
# echo "echo $* >/tmp/watch/test.log 2&1" >/tmp/watch/test.sh
# chmod +x /tmp/watch/test.sh
# chown -R test /tmp/watch

Now I started watchd and made file in /tmp/watch/watchdir:
# su test -c 'echo "test" > /tmp/watch/watchdir/test'

After few seconds file /tmp/watch/watchdir/test disapears
and should be moved to /tmp/watch/watchtmp.xxxxxx/ directory,
but it cannot happen, because dir  /tmp/watch/watchtmp.xxxxxx/
is owned by root (perms 0700, which is a bug), because command
"mv" runs under user 5555 (correct).




Reproducible: Always
Steps to Reproduce:
1.emerge watchfolder
2.make a test as described above
3.

Actual Results:  
watched file is not moved, but REMOVED
due to permissions/ownership problems

Expected Results:  
watched file should be moved to temdir as defined in /etc/watchd.conf

Portage 2.0.50-r9 (default-x86-2004.2, gcc-3.3.3, glibc-2.3.3.20040420-r1, 2.4.27)
=================================================================
System uname: 2.4.27 i686 Intel(R) Pentium(R) 4 CPU 1.60GHz
Gentoo Base System version 1.4.16
ccache version 2.3 [enabled]
Autoconf: sys-devel/autoconf-2.59-r4
Automake: sys-devel/automake-1.8.5-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium4 -O2 -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config
/usr/kde/3.2/share/config /usr/kde/3/share/config /usr/lib/mozilla/defaults/pref
/usr/share/config /usr/share/texmf/dvipdfm/config/
/usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/
/usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/qmail
/var/qmail/alias /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium4 -O2 -mfpmath=sse -msse2 -mmmx -fomit-frame-pointer -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X Xaw3d aalib acl acpi alsa apache2 arts audiofile avi bonobo cdr crypt
cups dga directfb doc dvd encode esd ethereal evo fbcon flash foomaticdb freetds
gd gdbm ggi gif gpm gps gtk gtk2 gtkhtml guile icc-pgo imap imlib innodb java
jikes jpeg junit kde ladcca lcms libwww linguas_sk lirc mad maildir mikmod mmx
motif mozilla mpeg mpi mule mysql nas ncurses nls oav odbc oggvorbis opengl oss
pam pcmcia pdflib perl plotutils png pnp python qt quicktime readline sasl
scanner sdl slang slp snmp socks5 spell sse ssl svga tcltk tcpd tiff truetype
trusted usb video_cards_radeon wavelan wmf x86 xface xml xml2 xmms xv zeo zlib"
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-08-25 17:28:34 UTC
aliz, please also put a metadata.xml
Comment 2 Peter Turczak 2005-03-06 02:53:57 UTC
Created attachment 52774 [details]
New revision of watchfolder with bug fixed..
Comment 3 Matti Bickel (RETIRED) gentoo-dev 2005-08-28 12:25:02 UTC
Sadly, the new version is not in the tree. Maintainer missing?
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2005-11-11 09:16:19 UTC
Re-assign.
Comment 5 Scott Stoddard (RETIRED) gentoo-dev 2006-02-15 13:45:25 UTC
I've bumped watchfolder to the most recent version (0.3.3) and added myself as maintainer for the package.