Commits
- Commit:
f4ad0146e973695127d1c9e1769cd2a7882184d8
- From:
- Omar Polo <op@omarpolo.com>
- Date:
work around wstat limitation
the previous commit added an explicit check for extra data in
messages. The problem is that wstat voluntarily skips reading some
fields at the end, so the len will always be greater than zero!
- Commit:
bcdb46a77ed7b4ff4d9e7ca8fae79fec74b504ae
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fail if the received packet is too long
This adds extra checks to every t* function: if the client sent too
much data per message, treat is an a protocol violation and terminate
the connection. Regress suite still passes, this is just an extra
safety check for finding wrong clients implementations.
The twrite function was the only one with a check like this.
- Commit:
ae6f257a8d22174cb2326cd60d690cceea59fa8e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix np_read{8,16,32,64} functions
they should return 0 on failure, not -1
- Commit:
46e4e74b0a512a6d37edcb8c711bc972f0adc908
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kamid: change fid fname size to NAME_MAX
the fname field is just the file name, so NAME_MAX is more
appropriate.
Committing this separately from the rename change so it's easier to
roll back eventually.
- Commit:
543fc013a4eb973fc1249d5c6d06a0f27903399a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kamid: rename field fpath to fname
it's actually just the file name, not a path
- Commit:
7d4a725de691bed2059e9b23ffc89aa0e38e113e
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- Commit:
13b8bb0ac6e2a739a68a6d0cb9c96973e6a5f3e5
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ftp: document rename
- Commit:
a9288ad988ac0f49b12cccac801beadd23e68733
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fix ls: don't hardcode fid=1
- Commit:
8d8fb849cf1470dfafdb8a5cc598aa510fb8e5c6
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ftp: add nextfid to find the next lower free fid
- Commit:
c37e1cfe6fd21e6a2adbecd132a186c8ee2b822a
- From:
- Omar Polo <op@omarpolo.com>
- Date:
add `rename' command
it leverages the recently added wstat support
- Commit:
4e93fcbdc7c7ffcbe977bc051ac8ea2a34bae4fe
- From:
- Omar Polo <op@omarpolo.com>
- Date:
9pclib: add wstat support
- Commit:
d33c93c4c8ccc67d3f0b9aaaa37c450dc5ea36a2
- From:
- Omar Polo <op@omarpolo.com>
- Date:
fmt
- Commit:
755d75bfd052cfd45d0dc40872aa6454ecaff76f
- From:
- Omar Polo <op@omarpolo.com>
- Date:
kamid: add wstat
it's not exactly compliant, as 9p requires the changes to be done
atomically, but it's not possible to better targeting a UNIX file
system.
The 9p manpage regarding wstat isn't clear about the behaviour when
changing the name of the file: kamid changes the associated fid to
reflect the rename. kamid also allows to rename files to other
directories, the fid is updated to the new location even in this case.
- Commit:
4cce062e124368e36a756d13097e57f2f2c33a39
- From:
- Omar Polo <op@omarpolo.com>
- Date:
move struct np_stat to kami.h
- Commit:
4f52d9af701703e1957e307d51947a9c0f162490
- From:
- Omar Polo <op@omarpolo.com>
- Date:
ftp: print mtime in ls output
Print the time (HH:MM) of the last edit is within the last 6 months, the
year otherwise; match what `ls -lahF' does on OpenBSD, and I think it's
cool.