Bug 584906
Summary: | rdist deletes destination directory tree when only one source file is specified | |||
---|---|---|---|---|
Product: | Red Hat Enterprise Linux 4 | Reporter: | Casey Dahlin <cdahlin> | |
Component: | rdist | Assignee: | Vojtech Vitek <vvitek> | |
Status: | CLOSED WONTFIX | QA Contact: | BaseOS QE - Apps <qe-baseos-apps> | |
Severity: | medium | Docs Contact: | ||
Priority: | low | |||
Version: | 4.8 | CC: | hripps, ovasik, plyons, rvokal, tao, vanhoof | |
Target Milestone: | rc | |||
Target Release: | --- | |||
Hardware: | All | |||
OS: | Linux | |||
Whiteboard: | ||||
Fixed In Version: | Doc Type: | Bug Fix | ||
Doc Text: | Story Points: | --- | ||
Clone Of: | ||||
: | 663297 663308 (view as bug list) | Environment: | ||
Last Closed: | 2010-12-15 11:30:06 UTC | Type: | --- | |
Regression: | --- | Mount Type: | --- | |
Documentation: | --- | CRM: | ||
Verified Versions: | Category: | --- | ||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
Cloudforms Team: | --- | Target Upstream Version: | ||
Embargoed: | ||||
Bug Depends On: | ||||
Bug Blocks: | 663297, 663308 |
Description
Casey Dahlin
2010-04-22 17:08:57 UTC
There are two test cases as Casey already mentioned: 1) Without a trailing slash '/': $ cd; touch test-file; mkdir test $ rdist -o noverify,noremove -P /usr/bin/ssh -p /usr/sbin/rdistd -c test-file 127.0.0.1:/home/vvitek/test 127.0.0.1: updating host 127.0.0.1 vvitek.0.1's password: 127.0.0.1: test-file: updating 127.0.0.1: dhcp-*: /home/vvitek/test: removed 127.0.0.1: updating of 127.0.0.1 finished This can be considered as expected behaviour (*). Rdist just replaced the destination directory with the new file. 2) With a trailing slash '/': $ cd; touch test-file; mkdir test $ rdist -o noverify,noremove -P /usr/bin/ssh -p /usr/sbin/rdistd -c test-file 127.0.0.1:/home/vvitek/test/ 127.0.0.1: updating host 127.0.0.1 vvitek.0.1's password: 127.0.0.1: test-file: updating 127.0.0.1: dhcp-*: /home/vvitek/test//rdist35JjYB: removed 127.0.0.1: dhcp-*: /home/vvitek/test/: removed 127.0.0.1: dhcp-*: REMOTE ERROR: /home/vvitek/test/rdist35JjYB -> /home/vvitek/test/: rename failed: No such file or directory 127.0.0.1: updating of 127.0.0.1 finished This is bug even if (*) was expected behaviour. Rdist just _deleted_ the destination directory but was _not able to create_ the new file. (*): Rdist removes destination directory with a file without any check. Other programs, such as rsync, cp, scp and mv never do this. They always check if the destination path wasn't an existing directory (even if one provides trailing slash or not) - and if it was existing directory, they creates new file inside that directory. This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux. |