Skip to content
Open
Changes from 1 commit
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
e17d624
Don't attempt to copy fifos.
bruce-one May 31, 2017
52c412f
Avoid fifos via symlinks.
bruce-one May 31, 2017
e4a911d
Better replicate cp during direct fifo copies.
bruce-one May 31, 2017
eaaa40a
Bugfix: don't break offset during copies.
bruce-one May 31, 2017
476d4b4
Test fix, use printf for osx not echo.
bruce-one Jun 1, 2017
c71edc2
Check exec exit code to fix tests on Windows.
bruce-one Jun 2, 2017
d469212
Skip fifo tests on Windows.
bruce-one Jun 2, 2017
5689dc0
Typo.
bruce-one Jun 2, 2017
777fe04
Shell out to create fifos during recursive copy.
bruce-one Jun 19, 2017
8fa217b
Handle "recursive" flag for special non-files.
bruce-one Jun 19, 2017
18c513e
Cleanup.
bruce-one Jun 19, 2017
be93375
Error messages.
bruce-one Jun 19, 2017
599a2c5
mknod fails without root.
bruce-one Jun 19, 2017
2d3af53
Linting.
bruce-one Jun 19, 2017
d942f3f
Permissions on special files.
bruce-one Jun 19, 2017
fad43aa
Logging.
bruce-one Jun 19, 2017
e6760bb
Lint.
bruce-one Jun 19, 2017
045c290
chown and chmod special files.
bruce-one Jun 19, 2017
40518f7
Use execFileSync for safety and simplicity.
bruce-one Jun 20, 2017
c69ddc3
Use mkfifo for fifo creation due for OSX compat.
bruce-one Jun 20, 2017
b2932cf
Replace unix specific code with warning.
bruce-one Jun 21, 2017
6a4a6a0
Log that special files were skipped.
bruce-one Jun 22, 2017
f7957bf
Revert "Log that special files were skipped."
bruce-one Jun 22, 2017
a4e5411
Doc.
bruce-one Jun 22, 2017
117894c
Treat special files the same whether recursive or not.
bruce-one Jun 22, 2017
48a0198
Doc.
bruce-one Jun 22, 2017
0d70322
Build doc.
bruce-one Jun 22, 2017
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Lint.
  • Loading branch information
bruce-one committed Jun 19, 2017
commit e6760bba366a2de43c8c3aa8f2e3bf78002bb031
4 changes: 2 additions & 2 deletions test/cp.js
Original file line number Diff line number Diff line change
Expand Up @@ -828,7 +828,7 @@ test('should set the mode when copying character devices', t => {
if (process.platform !== 'win32' && isRoot) {
shell.exec(`mknod ${t.context.tmp}/zero c 1 5`);
t.truthy(fs.existsSync(`${t.context.tmp}/zero`));
var originalMode = fs.statSync(`${t.context.tmp}/zero`).mode;
const originalMode = fs.statSync(`${t.context.tmp}/zero`).mode;
fs.chmodSync(`${t.context.tmp}/zero`, parseInt('777', 8));
t.not(fs.statSync(`${t.context.tmp}/zero`).mode, originalMode);
const result = shell.cp('-r', `${t.context.tmp}/zero`, `${t.context.tmp}/newZero`);
Expand All @@ -854,7 +854,7 @@ test('should set the mode when copying block devices', t => {
if (process.platform !== 'win32' && isRoot) {
shell.exec(`mknod ${t.context.tmp}/sda1 b 8 1`);
t.truthy(fs.existsSync(`${t.context.tmp}/sda1`));
var originalMode = fs.statSync(`${t.context.tmp}/sda1`).mode;
const originalMode = fs.statSync(`${t.context.tmp}/sda1`).mode;
fs.chmodSync(`${t.context.tmp}/sda1`, parseInt('777', 8));
t.not(fs.statSync(`${t.context.tmp}/sda1`).mode, originalMode);
const result = shell.cp('-r', `${t.context.tmp}/sda1`, `${t.context.tmp}/newSda1`);
Expand Down