diff options
author | 2022-11-12 00:08:51 +0100 | |
---|---|---|
committer | 2022-11-12 00:08:51 +0100 | |
commit | bf86fe99602d7d698f489e4c4de086b1f3a19e23 (patch) | |
tree | 8b6eacf4232796def48612d5f79953cd144a6b1e | |
parent | 101997fbb08ffdd294edc024fb17739f717da156 (diff) | |
download | bun-bf86fe99602d7d698f489e4c4de086b1f3a19e23.tar.gz bun-bf86fe99602d7d698f489e4c4de086b1f3a19e23.tar.zst bun-bf86fe99602d7d698f489e4c4de086b1f3a19e23.zip |
Fix: number '0000010' has leading zero
-rw-r--r-- | src/bundler/generate_node_modules_bundle.zig | 2 | ||||
-rw-r--r-- | src/install/lockfile.zig | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/bundler/generate_node_modules_bundle.zig b/src/bundler/generate_node_modules_bundle.zig index a27dc0af3..1b18bc7e4 100644 --- a/src/bundler/generate_node_modules_bundle.zig +++ b/src/bundler/generate_node_modules_bundle.zig @@ -848,7 +848,7 @@ pub fn generate( _ = C.fchmod( this.tmpfile.handle, // chmod 777 - 0000010 | 0000100 | 0000001 | 0001000 | 0000040 | 0000004 | 0000002 | 0000400 | 0000200 | 0000020, + 0o10 | 0o100 | 0o1 | 0o1000 | 0o40 | 0o4 | 0o2 | 0o400 | 0o200 | 0o20, ); try tmpfile.promote(tmpname, top_dir.fd, destination); // Print any errors at the end diff --git a/src/install/lockfile.zig b/src/install/lockfile.zig index c737c8341..eb5457f9f 100644 --- a/src/install/lockfile.zig +++ b/src/install/lockfile.zig @@ -1166,7 +1166,7 @@ pub const Printer = struct { try writer.writeAll( \\# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. \\# yarn lockfile v1 - \\# bun ./bun.lockb --hash: + \\# bun ./bun.lockb --hash: ); try writer.print( "{}\n\n", @@ -1444,7 +1444,7 @@ pub fn saveToDisk(this: *Lockfile, filename: stringZ) void { _ = C.fchmod( tmpfile.fd, // chmod 777 - 0000010 | 0000100 | 0000001 | 0001000 | 0000040 | 0000004 | 0000002 | 0000400 | 0000200 | 0000020, + 0o10 | 0o100 | 0o1 | 0o1000 | 0o40 | 0o4 | 0o2 | 0o400 | 0o200 | 0o20, ); tmpfile.promote(tmpname, std.fs.cwd().fd, filename) catch |err| { |