1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071 |
- AT_SETUP([--owner-map and --group-map])
- AT_KEYWORDS([owner map])
- AT_TAR_CHECK([
- export TZ=UTC0
- genfile --file a
- set -- `genfile --stat=uid,gid a`
- cat > uid.map <<EOT
- +$1 "Joe the Plumber:1234"
- EOT
- cat > gid.map <<EOT
- +$2 "Plumber's Union:5678"
- EOT
- tar --owner-map=uid.map\
- --group-map=gid.map\
- --owner="Fallback Owner:4321" \
- --group="Fallback Group:8765" \
- --mtime='@0' \
- --mode='u=rw,go=r' \
- -cf 1.tar a
- tar -tvf 1.tar
- tar --numeric-owner -tvf 1.tar
-
- > uid.map
- > gid.map
- tar --owner-map=uid.map\
- --group-map=gid.map\
- --owner="Fallback Owner:4321" \
- --group="Fallback Group:8765" \
- --mtime='@0' \
- --mode='u=rw,go=r' \
- -cf 2.tar a
- tar -tvf 2.tar
- tar --numeric-owner -tvf 2.tar
- ],
- [0],
- [-rw-r--r-- Joe the Plumber/Plumber's Union 0 1970-01-01 00:00 a
- -rw-r--r-- 1234/5678 0 1970-01-01 00:00 a
- -rw-r--r-- Fallback Owner/Fallback Group 0 1970-01-01 00:00 a
- -rw-r--r-- 4321/8765 0 1970-01-01 00:00 a
- ],
- [],[],[],[gnu])
- AT_CLEANUP
|