Last active
December 1, 2020 22:58
-
-
Save MrStonedOne/91f965478cd8dd099647c38787e85201 to your computer and use it in GitHub Desktop.
byond can't into smb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
write(2, "normal:\n", 8) = 8 | |
stat64("/tgs/instances/Configuration/GameStaticFiles/config.old/config.txt", {st_dev=makedev(0x8, 0x2), st_ino=400984, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=48, st_size=22853, st_atime=1606819126 /* 2020-12-01T10:38:46.112356826+0000 */, st_atime_nsec=112356826, st_mtime=1588998179 /* 2020-05-09T04:22:59+0000 */, st_mtime_nsec=0, st_ctime=1594251182 /* 2020-07-08T23:33:02.666931978+0000 */, st_ctime_nsec=666931978}) = 0 | |
write(2, "fexists=1\n", 10) = 10 | |
openat(AT_FDCWD, "/tgs/instances/Configuration/GameStaticFiles/config.old/config.txt", O_RDONLY) = 4 | |
fstat64(4, {st_dev=makedev(0x8, 0x2), st_ino=400984, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=48, st_size=22853, st_atime=1606819126 /* 2020-12-01T10:38:46.112356826+0000 */, st_atime_nsec=112356826, st_mtime=1588998179 /* 2020-05-09T04:22:59+0000 */, st_mtime_nsec=0, st_ctime=1594251182 /* 2020-07-08T23:33:02.666931978+0000 */, st_ctime_nsec=666931978}) = 0 | |
fstat64(4, {st_dev=makedev(0x8, 0x2), st_ino=400984, st_mode=S_IFREG|0644, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=4096, st_blocks=48, st_size=22853, st_atime=1606819126 /* 2020-12-01T10:38:46.112356826+0000 */, st_atime_nsec=112356826, st_mtime=1588998179 /* 2020-05-09T04:22:59+0000 */, st_mtime_nsec=0, st_ctime=1594251182 /* 2020-07-08T23:33:02.666931978+0000 */, st_ctime_nsec=666931978}) = 0 | |
read(4, "################################"..., 20480) = 20480 | |
read(4, "set it to something like\r\n##\t1.1"..., 4096) = 2373 | |
close(4) = 0 | |
brk(0x909f000) = 0x909f000 | |
write(2, "contents=\"######################"..., 22902) = 22902 | |
brk(0x9099000) = 0x9099000 | |
write(2, "SMB:\n", 5) = 5 | |
stat64("/tgs/config-sync/config.txt", {st_dev=makedev(0, 0x29), st_ino=9851624185740690, st_mode=S_IFREG|0755, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=16384, st_blocks=32, st_size=22119, st_atime=1527155980 /* 2018-05-24T09:59:40+0000 */, st_atime_nsec=0, st_mtime=1603436816 /* 2020-10-23T07:06:56.074931300+0000 */, st_mtime_nsec=74931300, st_ctime=1603436822 /* 2020-10-23T07:07:02.355545500+0000 */, st_ctime_nsec=355545500}) = 0 | |
write(2, "fexists=0\n", 10) = 10 | |
openat(AT_FDCWD, "/tgs/config-sync/config.txt", O_RDONLY) = 4 | |
fstat64(4, {st_dev=makedev(0, 0x29), st_ino=9851624185740690, st_mode=S_IFREG|0755, st_nlink=1, st_uid=1000, st_gid=1000, st_blksize=16384, st_blocks=32, st_size=22119, st_atime=1527155980 /* 2018-05-24T09:59:40+0000 */, st_atime_nsec=0, st_mtime=1603436816 /* 2020-10-23T07:06:56.074931300+0000 */, st_mtime_nsec=74931300, st_ctime=1603436822 /* 2020-10-23T07:07:02.355545500+0000 */, st_ctime_nsec=355545500}) = 0 | |
close(4) = 0 | |
write(2, "contents=\"\"\n", 12) = 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
world/New() | |
spawn(10) | |
var/smbfile = "/tgs/config-sync/config.txt" | |
var/normalfile = "/tgs/instances/Configuration/GameStaticFiles/config.old/config.txt" | |
world.log << "normal:" | |
world.log << "fexists=[json_encode(fexists(normalfile))]" | |
world.log << "contents=[json_encode(file2text(normalfile))]" | |
world.log << "SMB:" | |
world.log << "fexists=[json_encode(fexists(smbfile))]" | |
world.log << "contents=[json_encode(file2text(smbfile))]" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment