by linsomniac · 1w ago · 0 comments
https://github.com/linsomniac/ganeti
A first-class ZFS storage provider that includes a ZFS replication-based live-migration.
The claim was AI codes better than humans, right?
"Fix bugs, security issues, and dead code found in ZFS code review"
- pipeline = ("set -o pipefail; zfs send -i '%s@%s' '%s@%s' | %s" %
- (dataset, incremental_base, dataset, snap_name, ssh_part))
+ q_dataset_base = utils.ShellQuote("%s@%s" % (dataset, incremental_base))
+ pipeline = ("set -o pipefail; zfs send -i %s %s | %s" %
+ (q_dataset_base, q_dataset_snap, ssh_part))
https://github.com/linsomniac/ganeti/commit/11a1c9e73354e7b8...I haven't even looked at the other lines yet, but I wonder who had introduced these...
https://github.com/linsomniac/ganeti/commit/8c700e8b3f05013b...
"Co-Authored-By: Claude Opus 4.6"
Yeah, humans are fallible too, but I can tell you that neither I nor my coworkers tend to write shell-injection vulnerabilities this blatant in 2026. And if we somehow did by accident, others would catch it during code review. In fact, even today's AI would probably catch this during code review...