Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 20 Jul 2026 13:11:20 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 296641] sysutils/pefs-kmod script files are sort-of zeroed when execed
Message-ID:  <bug-296641-7788-GvI2w9jwwq@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-296641-7788@https.bugs.freebsd.org/bugzilla/>

index | next in thread | previous in thread | raw e-mail

https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=296641

--- Comment #5 from Daniel O'Connor <darius@dons.net.au> ---
This is quite odd, it looks like the act of trying to execute it zeroes it
out?!
Very odd.
I can reproduce it with no need for rebooting:

[radxa 13:07] ~ >cat /crypt/test.tcl
#!/usr/local/bin/tclsh8.6

puts "test123"
[radxa 13:07] ~ >chmod 755 /crypt/test.tcl
[radxa 13:07] ~ >pefs umount /crypt
[radxa 13:07] ~ >pefs mount /crypt /crypt ; pefs addkey -c /crypt
Enter passphrase:
[radxa 13:07] ~ >/crypt/test.tcl
zsh: exec format error: /crypt/test.tcl
[radxa 13:07] ~ >hexdump -Cv /crypt/test.tcl
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00                 |...........|
0000002b
[radxa 13:07] ~ >pefs umount /crypt
[radxa 13:09] ~ >pefs mount /crypt /crypt ; pefs addkey -c /crypt
Enter passphrase:
[radxa 13:09] ~ >hexdump -Cv /crypt/test.tcl
00000000  23 21 2f 75 73 72 2f 6c  6f 63 61 6c 2f 62 69 6e  |#!/usr/local/bin|
00000010  2f 74 63 6c 73 68 38 2e  36 0a 0a 70 75 74 73 20  |/tclsh8.6..puts |
00000020  22 74 65 73 74 31 32 33  22 0a 0a                 |"test123"..|
0000002b
[radxa 13:09] ~ >/crypt/test.tcl
zsh: exec format error: /crypt/test.tcl
[radxa 13:09] ~ >hexdump -Cv /crypt/test.tcl
00000000  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000010  00 00 00 00 00 00 00 00  00 00 00 00 00 00 00 00  |................|
00000020  00 00 00 00 00 00 00 00  00 00 00                 |...........|
0000002b

-- 
You are receiving this mail because:
You are the assignee for the bug.

home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-296641-7788-GvI2w9jwwq>