instance_id
stringlengths
10
65
repo
stringlengths
5
59
pr_number
int64
1
313k
task_type
stringclasses
1 value
base_commit
stringlengths
40
40
review_commit
stringlengths
40
40
title
stringlengths
2
282
body
stringlengths
7
3k
patch
stringlengths
202
204k
n_defects
int64
1
72
n_supported
int64
1
65
n_major
int64
0
32
defects
stringlengths
140
18.8k
certifier_count
int64
usi-verification-and-security__opensmt__839
usi-verification-and-security/opensmt
839
defect
a14fd65b7fe605ecccd7eb58e5e71218759bdba4
9176cd422bc69f850b857dc099f0d760b1d66b6c
Substitutions: Add detection of conflict in arithmetic substitutions
Previously, the test I am adding here would trigger an assertion failure, because it would try to create a substitution `x -> 1/3` in the integer logic. To prevent that, we can detect such cases and abort the computation of substitutions early. We have to pass along the fact that the formula from which we are computin...
diff --git a/src/logics/ArithLogic.cc b/src/logics/ArithLogic.cc index 9612b41c7..5c57f2d11 100644 --- a/src/logics/ArithLogic.cc +++ b/src/logics/ArithLogic.cc @@ -261,7 +261,12 @@ namespace { } } - Logic::SubstMap collectConstantSubstitutions(ArithLogic & logic, std::vector<LAPoly> & zeroPolynomial...
4
4
2
[{"id": "G0", "claim": "The new test_Divisibility test should check that the returned value is l_False instead of calling arithmeticElimination without asserting anything.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment saying the method does...
null
usi-verification-and-security__opensmt__851
usi-verification-and-security/opensmt
851
defect
518adb0dfa5143f78b32d6b168052cff9075b237
87b68c03e361609908bc2b22bf351c52a0343e47
Unified external stops of solvers
Used dedicated functions at the global and local scopes to notify the solver to stop. Used the flags in `okContinue()` function Not used in `ScatterSplitter` though, which uses dedicated mechanisms for timeouts etc. Added a test that demonstrates how to use the stopping mechanism using threads and even a simple time...
diff --git a/src/api/MainSolver.cc b/src/api/MainSolver.cc index 62b86438a..be42d04e9 100644 --- a/src/api/MainSolver.cc +++ b/src/api/MainSolver.cc @@ -25,8 +25,6 @@ namespace opensmt { -bool stop; - MainSolver::MainSolver(Logic & logic, SMTConfig & conf, std::string name) : theory(createTheory(logic, conf)...
5
4
1
[{"id": "G0", "claim": "ScatterSplitter::okContinue ignores stopped() and globallyStopped(), so the parallel solver may not honor the unified external stopping mechanism this pull request introduces.", "category": "design", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The globa...
null
usi-verification-and-security__opensmt__860
usi-verification-and-security/opensmt
860
defect
7cef5bc983d7774874ffc177f06516c4e0f411f4
e21f02fa6773549d78230133d8e1e6167000c142
Getting names from unsat cores
Allowed getting term names out of `NamedUnsatCore`s directly without the need to manually use `TermNames` for that.
diff --git a/src/unsatcores/UnsatCore.cc b/src/unsatcores/UnsatCore.cc index fc90fe394..c6a2eadd2 100644 --- a/src/unsatcores/UnsatCore.cc +++ b/src/unsatcores/UnsatCore.cc @@ -37,6 +37,22 @@ void NamedUnsatCore::printTerm(std::ostream & os, PTRef term) const { os << termNames.nameForTerm(term); } +std::vector<...
1
1
0
[{"id": "G0", "claim": "The `Tp` suffix in `makeTermNamesTp` should be renamed to something that says what it means, given there is no template.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
usi-verification-and-security__opensmt__864
usi-verification-and-security/opensmt
864
defect
8bcb4b572a4044297f0d82302ea62aa4a1692aec
650ac2e36a71ef5c48866f033b7c983f63720df3
Not producing models by default
... and fixed all tests and examples so that they enable the production of models explicitly. This may break some applications that use OpenSMT if they assume that the option is set to true by default. Resolves #855
diff --git a/examples/README.md b/examples/README.md index cf05ee855..11ffbe1ae 100644 --- a/examples/README.md +++ b/examples/README.md @@ -9,7 +9,7 @@ Assuming you've installed OpenSMT headers and libraries under a directory `<DIR>`, the examples can be compiled by running $ cd examples && mkdir build && cd b...
2
2
0
[{"id": "G0", "claim": "Use the simpler `config->setProduceModels()` call in examples/test_lra_value.cc instead of the verbose `config->setOption(SMTConfig::o_produce_models, SMTOption(true), msg)`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": ...
null
ustclug__hackergame__197
ustclug/hackergame
197
defect
bb8f86e506b33c97a38496278d93bb58d28bcd7f
1fbd3f874712e26560de76066da46475b3374503
Unidirectional feedback
Some designs of this feedback are from geekgame platform. And a logger for logging while allowing handling exceptions user-friendly.
diff --git a/conf/local_settings.py.example b/conf/local_settings.py.example index 917b6dcc..506ac1be 100644 --- a/conf/local_settings.py.example +++ b/conf/local_settings.py.example @@ -18,3 +18,5 @@ EXTERNAL_LOGINS = { 'use_smtp': False, } } +FEEDBACK_ENDPOINT = 'https://example.com/bot/' # or None +F...
2
2
0
[{"id": "G0", "claim": "Django ORM can sort by the submit_datetime column and take the latest directly, instead of the manual loop over matched feedbacks (framed as no need to change).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The bare expr...
null
ustroetz__python-osrm__28
ustroetz/python-osrm
28
defect
1d47b88eddc9200c9f420c85f00be01f72155050
a585e57617c1cd98bd062ab06d11438c3eadf0c7
Update core.py for changes to simple_route
The simple_function missed a closing semicolon when intermediate coordinates are used, also the input geometry-format was not consistently set to lowercase in the if statements. (This is my first pull request, so I hope I'm doing this right.)
diff --git a/osrm/core.py b/osrm/core.py index f64c9ff..e7a5226 100644 --- a/osrm/core.py +++ b/osrm/core.py @@ -186,7 +186,7 @@ def simple_route(coord_origin, coord_dest, coord_intermediate=None, if coord_intermediate: url.append(";".join( [','.join([str(i), str(j)]) for i, j in ...
3
3
1
[{"id": "G0", "claim": "Apply the same case-insensitive geometry handling (geometry.lower()) in the trip function at osrm/core.py around line 497, as the pull request already did in simple_route.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The ne...
null
utensils__claudette__415
utensils/claudette
415
defect
6f356b37f6e1340195b2035376cca8db670fa429
a272f16720421e7f7690bd22571fd95ebfdde09a
feat(env-direnv): honor DIRENV_WATCHES + slow nix-devshell test
Closes #413. ## Summary - **`env-direnv` now honors `DIRENV_WATCHES`** — after a successful `direnv export json`, the plugin decodes the watches env var and merges the paths into its `watched` list. Edits to files direnv itself tracks (`watch_file secret.env`, `dotenv .local.env`, nested sourced files) now in...
diff --git a/plugins/env-direnv/init.lua b/plugins/env-direnv/init.lua index e344d0569..062290008 100644 --- a/plugins/env-direnv/init.lua +++ b/plugins/env-direnv/init.lua @@ -5,10 +5,11 @@ -- runs `direnv export json` (which returns `{VAR: "value" | null}`) and -- forwards that straight to the dispatcher. -- --- K...
3
3
1
[{"id": "G0", "claim": "decode_direnv_watches decompresses the DIRENV_WATCHES payload into a String with no size bound, so a malicious or accidentally huge value could cause large allocations or OOM during zlib inflate or JSON parsing; it should cap both the decoded input size and the decompressed payload.", "category"...
null
utensils__claudette__446
utensils/claudette
446
defect
344bc8f30d921d9feba80481d405ea0b49a5a1f0
2ab6552e20848bec81e43df821b7a2fb201600d8
feat(server): thread env-provider ResolvedEnv through remote handler
Closes #409. ## Summary - Wires the env-provider registry, mtime-keyed cache, and per-repo disabled-provider lookup into `src-server/src/handler.rs` so agents launched via the remote transport get `.envrc` / mise / dotenv / nix-devshell activation, matching the desktop Tauri path. - Mirrors the Tauri-side env-drift s...
diff --git a/Cargo.lock b/Cargo.lock index 9cdf60195..d32db838f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -873,6 +873,7 @@ dependencies = [ "serde", "serde_json", "sha2", + "tempfile", "tokio", "tokio-rustls", "tokio-tungstenite", diff --git a/src-server/Cargo.toml b/src-server/Cargo.toml index 5d38b6fe9....
3
3
0
[{"id": "G0", "claim": "`resolve_workspace_env` opens the SQLite DB internally to load per-repo disabled providers even though callers like `handle_send_chat_message` already hold an open `Database` handle, adding an avoidable DB open (and file locking) per turn; consider passing `&Database` (or the already-loaded disa...
null
utensils__claudette__585
utensils/claudette
585
defect
6d202176311822a58d831d4d2bdbf08d27391e9f
e229fe0d429785f54bad74456789aeb85d16699c
feat(plugins): enforce granted_capabilities at every host.* call site
## Summary - Community plugins now fail closed when a manifest update grows `required_clis` beyond the user-approved grants recorded at install. - Bundled plugins remain trusted (no enforcement); hand-installed plugins keep current allow-everything semantics for backward compatibility. - Adds a re-consent UI banner in...
diff --git a/src-tauri/src/commands/community.rs b/src-tauri/src/commands/community.rs index bbc018b1b..2376ae0ad 100644 --- a/src-tauri/src/commands/community.rs +++ b/src-tauri/src/commands/community.rs @@ -372,6 +372,110 @@ pub async fn community_list_installed( Ok(out) } +/// Capability re-consent request s...
5
5
2
[{"id": "G0", "claim": "resolve_trust treats any Err from read_install_meta (e.g. corrupt/partially-written .install_meta.json) the same as 'no community metadata' and falls through to Bundled/Unknown, a fail-open path letting a community-installed plugin with malformed meta bypass granted_capabilities enforcement; han...
null
utensils__claudette__662
utensils/claudette
662
defect
c083bbfbfdb4319def120036b6259a71f8c4bb11
12bdd3f3aedd606236670de05b78d38fc1f433de
feat: add archive scripts for workspaces
## Summary Adds an `archive_script` analogue to the existing `setup_script` feature. A per-repo `scripts.archive` field in `.claudette.json` (with an optional per-user DB override via Repo Settings) runs automatically when a workspace is archived — useful for pushing final commits, stashing work, or cleaning up build ...
diff --git a/src-server/tests/env_provider_integration.rs b/src-server/tests/env_provider_integration.rs index d0e1401cb..43d6654bd 100644 --- a/src-server/tests/env_provider_integration.rs +++ b/src-server/tests/env_provider_integration.rs @@ -66,6 +66,7 @@ fn make_repo(path: &str) -> Repository { sort_order:...
8
8
1
[{"id": "G0", "claim": "get_repo_config derives setup_script by borrowing cfg.scripts and archive_script by moving cfg.scripts in the same struct literal, so because field evaluation order is not guaranteed the pattern can fail to compile (borrow/move conflict) or become brittle; extract cfg.scripts into a local before...
null
utensils__claudette__756
utensils/claudette
756
defect
c5b24b08fc1efef993a8758831c3b300544dca0d
b59086e72c6d87ff39a7c7e24a7c06f6dedd0024
fix(env-direnv): drop direnv allow/deny stamps from watched list
## Symptom With `repo_trust = "allow"` set on a repo, every workspace switch triggered a fresh 5s `direnv export json` even though `.envrc` / `flake.nix` / `flake.lock` had not changed. The chat composer and terminal panel both showed *"Preparing direnv (Ns)…"* / *"Loading direnv environment (Ns)…"* on every select, m...
diff --git a/plugins/env-direnv/init.lua b/plugins/env-direnv/init.lua index 1d1f3b0cf..cb726de51 100644 --- a/plugins/env-direnv/init.lua +++ b/plugins/env-direnv/init.lua @@ -63,14 +63,54 @@ function M.export(args) -- Seed with `.envrc` unconditionally — it's always a watch target. -- Then merge in whatev...
2
2
0
[{"id": "G0", "claim": "The regression test's comment still says the plugin filters stamps by the /direnv/allow/ and /direnv/deny/ substrings alone; the comment should be updated to reflect the two-part filter (path segment plus 32+ lowercase-hex basename) so the rationale stays accurate.", "category": "documentation",...
null
utensils__claudette__776
utensils/claudette
776
defect
f9a1c2288618bb33cc9bc73013368de9a07c8326
e2083a80c9cca7b327af4303ed0d45ff4eccf02b
fix: require direnv reapproval after envrc changes
## Summary This PR makes direnv trust content-aware and ensures env-provider changes are reflected in persistent agent sessions without relying on users to wrap commands in `nix develop -c`. Key changes: - Added a confined `host.sha256_file(path)` plugin host API for env-provider plugins. - Updated `env-direnv` so r...
diff --git a/plugins/env-direnv/init.lua b/plugins/env-direnv/init.lua index 275a3e13c..5c80cfc64 100644 --- a/plugins/env-direnv/init.lua +++ b/plugins/env-direnv/init.lua @@ -30,21 +30,31 @@ function M.detect(args) end function M.export(args) + local envrc_path = join(worktree_of(args), ".envrc") local re...
4
4
2
[{"id": "G0", "claim": "persist_approved_envrc_sha256s silently swallows errors from db.get_app_setting via .ok().flatten(), which can silently drop previously-approved digests if the read fails and the merged list is then written back; consider propagating the DB error (or at least logging and returning).", "category"...
null
utensils__claudette__807
utensils/claudette
807
defect
6ac6408df8e146b90cc45a03d18aec66fa8442e3
fae641d241134ed14af2ffa60f333e7512460fc8
feat(repo): prompt for declared inputs on workspace create
## Summary Adds a per-repo, **optional** declared-inputs feature: a repo maintainer can list named inputs (`string` / `number` / `boolean`) in Repo Settings, and every new workspace must supply a value for each before it can be created. The values become environment variables in that workspace's session — visible to t...
diff --git a/site/astro.config.mjs b/site/astro.config.mjs index aa97d54f3..d8a050f8c 100644 --- a/site/astro.config.mjs +++ b/site/astro.config.mjs @@ -114,6 +114,7 @@ export default defineConfig({ { slug: 'features/scm-providers' }, { slug: 'features/mcp-servers' }, { slug: 'fea...
12
12
8
[{"id": "G0", "claim": "coerce_value's String arm accepts an empty string for a declared required input, so IPC/CLI callers can bypass the modal's required-value contract; it should reject blank/whitespace-only values (or the frontend/docs should allow them).", "category": "correctness", "verdict": "supported", "priori...
null
utensils__claudette__843
utensils/claudette
843
defect
ff5f0f57d87498173e8b163d27e05d9751f806c1
8f5fcb5ca4403fecd70a02cde425bd2ddf77f8d1
feat(server): add get_chat_snapshot RPC for WSS recovery
## Summary - Adds `get_chat_snapshot` RPC to `claudette-server`, mirroring the desktop IPC `ChatSnapshot` shape in `src-tauri/src/ipc.rs`. One read returns session metadata, paginated messages, completed turns, safe-inlined attachments, the live `pending_permissions` map for the session, plus `has_more` / `total_count...
diff --git a/src-server/src/handler.rs b/src-server/src/handler.rs index a2f6207c1..2504171ec 100644 --- a/src-server/src/handler.rs +++ b/src-server/src/handler.rs @@ -43,6 +43,19 @@ pub async fn handle_request( let chat_session_id = param_chat_session_id(&params); handle_load_completed_turns...
5
4
4
[{"id": "G0", "claim": "The inline budget is consumed while iterating a HashMap before attachments are sorted, so when total inlineable text exceeds the 512 KB response budget, HashMap iteration order can give different attachments text_content across calls/reconnects, making recovery nondeterministic; apply chronologi...
null
utensils__claudette__912
utensils/claudette
912
defect
31d696a3c75d1da7af148596c9c7a87fa059c384
2497046000e4ae621cb743c1292b1f5a732e7a9e
fix(env-direnv): cache thrashes on workspaces with no source changes
## Summary Fixes #888 — an already-loaded direnv / nix-direnv workspace would repeatedly fall back to `Preparing direnv (Ns)…` (mid agent-turn, or on re-selection) even though no `.envrc` / `flake.nix` / `flake.lock` content changed. The issue identified three independent causes; this PR fixes all three, plus the gap...
diff --git a/plugins/env-direnv/init.lua b/plugins/env-direnv/init.lua index 9a1cff47e..4ba4c2fc9 100644 --- a/plugins/env-direnv/init.lua +++ b/plugins/env-direnv/init.lua @@ -30,7 +30,8 @@ function M.detect(args) end function M.export(args) - local envrc_path = join(worktree_of(args), ".envrc") + local work...
3
3
3
[{"id": "G0", "claim": "check_freshness treats content_hash(path) == wf.hash as proof of unchanged bytes even when hashes are None (read error or watched directory), so an mtime change is healed instead of invalidating and stale env exports can survive; it should only use the hash fallback when both hashes are Some(_),...
null
utensils__claudette__926
utensils/claudette
926
defect
ec1bfd47be22dd093619744b161cb6dc9f69e564
2cb634f8f5da923628eebcd754fe539179bb22b4
fix(windows): default subprocesses to no console window
## Summary Closes #917. This PR fixes the Windows release-only console flash class by making the no-window process spawn behavior the default and adding a clippy guard so raw subprocess constructors cannot creep back in unnoticed. Windows GUI builds do not have an attached console, so unguarded `CreateProcessW` child...
diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index d3f79ee45..efc8e55ce 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -22,4 +22,6 @@ Never edit, rename, or delete released SQL migrations under `src/migrations/*.sq Use `bun`, not npm. Keep Type...
1
1
1
[{"id": "G0", "claim": "The source-level tripwire test in src-tauri/src/commands/agent_backends/mod.rs that asserts discovery.rs's codex_cli_command helper contains the substring '.no_console_window()' will now fail because the helper was switched to claudette::process::command(...), so update the tripwire to assert on...
null
util-linux__util-linux__1876
util-linux/util-linux
1,876
defect
21e52455116be0ae48592014aa0290f1120b3c1f
166527fb083e521b43d2c5c114bf443205d8133d
mount: add rootcontext=@target
Add a special value for rootcontext=, namely `@target`, to set the root context of the new filesystem to the current context of the target mountpoint. Useful for in-memory filesystems, like tmpfs and ramfs. Closes: #1830
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 3eaa12f0f37..92d64f15eb3 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -334,10 +334,14 @@ static int fix_optstr(struct libmnt_context *cxt) name, val ? val + valsz : name + namesz)...
3
2
2
[{"id": "G0", "claim": "The rootcontext name check should use sizeof(\"rootcontext\") - 1 instead of a strlen() call, and strncmp() with valsz should be used for the value since the value is not zero-terminated.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", ...
null
util-linux__util-linux__2066
util-linux/util-linux
2,066
defect
f191801c142e9fcf9d735b6b014aa1a18050a08d
578ce548f2dde2d36273e17d592ed679f18bd79d
lsfd: use extra information loaded from /proc/net/tcp6
``` Example output: # ./lsfd -Q '(TYPE == "TCPv6") and ((COMMAND == "sshd") or (COMMAND == "test_mkfds"))' COMMAND PID USER ASSOC MODE TYPE SOURCE MNTID INODE NAME sshd 1137 root 4 rw- TCPv6 sockfs 9 34689 state=listen laddr=[::]:22 test_mkfds 716926 j...
diff --git a/misc-utils/lsfd-sock-xinfo.c b/misc-utils/lsfd-sock-xinfo.c index 535b86e42ad..ad70285a988 100644 --- a/misc-utils/lsfd-sock-xinfo.c +++ b/misc-utils/lsfd-sock-xinfo.c @@ -19,6 +19,7 @@ * Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include <arpa/inet.h> /* inet_ntop */ +#include...
5
3
1
[{"id": "G0", "claim": "In tcp6_xinfo_scan_line, allocate with sizeof(*tcp) instead of sizeof(struct tcp_xinfo).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The 143-line make_tcp_common function is poorly documented (fewer than 2% comments)."...
null
util-linux__util-linux__2168
util-linux/util-linux
2,168
defect
89779c1efc8643bdeea4f94c05f6254d5374ecf9
b350364ae208ec11a4b1bdedafeadbbdafd8feed
Ensure 64bit time support
This makes sure internally to util-linux all time values are 64bit and Y2038 compatible even on 32bit systems. It uses the mechanism implemented by glibc (`-D_TIME_BITS=64`). I'm not sure: * if it should be a hard error if the libc does not support 64bit times * if this works will all header files defining ...
diff --git a/configure.ac b/configure.ac index fbe735a3cc9..0437dd9c1fe 100644 --- a/configure.ac +++ b/configure.ac @@ -265,6 +265,7 @@ UL_SET_ARCH([HPPA], [hppa*|parisc*]) AC_SYS_LARGEFILE AC_HEADER_ASSERT AC_STRUCT_TIMEZONE +UL_SYS_TIME64 dnl Don't forget to maintain alternatively allowed versions in autogen.s...
4
3
1
[{"id": "G0", "claim": "Forcing 64-bit time_t via -D_TIME_BITS=64 on 32-bit systems breaks the ABI of any util-linux library whose public API uses time_t (and has no effect on 64-bit systems or on utmp/wtmp/lastlog), and this ABI impact needs to be checked before shipping.", "category": "correctness", "verdict": "suppo...
null
util-linux__util-linux__2254
util-linux/util-linux
2,254
defect
fb062800bebc802e973fd54e5de91352596df504
d22e2ffcb4294719039c1989236abfa136d12a4b
enosys: add support for ioctl blocking
Ioctls are blocked with ENOTTY. This is still missing a mechanism to discover ioctls at build time. At the moment only `FIOCLEX` is supported.
diff --git a/bash-completion/enosys b/bash-completion/enosys index 61aff46c844..b082d8f5021 100644 --- a/bash-completion/enosys +++ b/bash-completion/enosys @@ -8,6 +8,9 @@ _waitpid_module() '-s'|'--syscall') return 0 ;; + '-i'|'--ioctl') + return 0 + ;; '-l'|'--list') return 0 ;; @@ -18,6 +2...
5
4
3
[{"id": "G0", "claim": "Generating BPF code for every ioctl the way it is currently done for syscalls would exceed the maximum size of a BPF program, so the generation logic needs to become dynamic.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Finding ...
null
util-linux__util-linux__2288
util-linux/util-linux
2,288
defect
90b12595bbe3357fdbccf5eec6c3885e53bc614e
20c8b1fedc87e88b8ba592b3fef7be99555e6f89
lsfd: print the detail of the timer associated with a timerfd
An example output: # ./lsfd -p 1 -Q '(TYPE == "timerfd")' -oCOMMAND,PID,ASSOC,TYPE,INODE,NAME COMMAND PID ASSOC TYPE INODE NAME systemd 1 22 timerfd 1060 clockid=monotonic remaining=4625.661834645 systemd 1 25 timerfd 1060 clockid=realtime remaining=398.164618943 systemd 1 ...
diff --git a/misc-utils/lsfd-unkn.c b/misc-utils/lsfd-unkn.c index 6ecdc76f20d..609f5420c80 100644 --- a/misc-utils/lsfd-unkn.c +++ b/misc-utils/lsfd-unkn.c @@ -25,6 +25,9 @@ #include "lsfd.h" +#include <sys/timerfd.h> +#include <time.h> + struct unkn { struct file file; const struct anon_ops *anon_ops; @@ -2...
4
3
1
[{"id": "G0", "claim": "TIMERFD.INTERVAL should be a single SCOLS_JSON_NUMBER column without the two derived INT/NANOFRAC columns, since the split representation forces users to hand-roll floating point comparisons in the filter engine.", "category": "design", "verdict": "supported", "priority": "P1", "scope": "introdu...
null
util-linux__util-linux__2308
util-linux/util-linux
2,308
defect
b5fc1d120e6b2db9b1dcd198d73ab4616741d9f9
da8a8439642419dc67f0775971aada855b77c791
lsfd: fill NAME column of inotify files with the information about their monitoring targets
# ./lsfd -p 1 -Q '(TYPE == "inotify") and (FD > 7)' COMMAND PID USER ASSOC MODE TYPE SOURCE MNTID INODE NAME systemd 1 root 11 r-- inotify anon_inodefs 15 1060 inodes=116@dm-0 systemd 1 root 13 r-- inotify anon_inodefs 15 1060 inodes=299@tmpfs...
diff --git a/misc-utils/lsfd-file.c b/misc-utils/lsfd-file.c index 345d97103b2..134440a447e 100644 --- a/misc-utils/lsfd-file.c +++ b/misc-utils/lsfd-file.c @@ -112,6 +112,39 @@ static uint64_t get_map_length(struct file *file) return res; } +int decode_source(char *buf, size_t bufsize, + unsigned int dev_major...
5
1
0
[{"id": "G0", "claim": "In the new mkfds-inotify test script the word of the form \"A\"B\"C\" (the echo comparison lines) should be rewritten to say unambiguously whether \"ABC\" or \"A\\\"B\\\"C\" was meant, per Code Scanning alert 755.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "i...
null
util-linux__util-linux__2394
util-linux/util-linux
2,394
defect
db8f78151c075d25792b6b77b500c1c52a374fe0
9caf2af65bc7d03a915e70f4319f5a220ce0b53c
lsfd: extend the monitor flag in XMODE column to support poll and select
The original code supports only epoll_wait. Surprisingly extending the feature to support poll(2) and select(2) was not hard. I just used /proc/$pid/syscall file and process_vm_readv syscall. I assumed I had to use ptrace(2). An example session: ``` # ./lsfd -p $(pidof sshd) -Q 'FD >= 0' ...
diff --git a/include/procfs.h b/include/procfs.h index 25be51357d7..14625e0ba4e 100644 --- a/include/procfs.h +++ b/include/procfs.h @@ -32,6 +32,7 @@ extern int procfs_process_get_uid(struct path_cxt *pc, uid_t *uid); extern ssize_t procfs_process_get_cmdline(struct path_cxt *pc, char *buf, size_t bufsz); extern ssi...
2
2
1
[{"id": "G0", "claim": "The variables r and w may be read before being initialized because the switch over mode that assigns them has no default and no initialization.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G3", "claim": "The multiplexing test case can tim...
null
util-linux__util-linux__2428
util-linux/util-linux
2,428
defect
123fe3336fe109200e4c6c645ac8c9202c38b3f6
afff8d322df32ecd635e1fb6b5b54e05641848ad
verity: use <roothash>-verity as the device mapper name instead of libmnt_<image>
If the roothash is the same among two volumes, then the images are guaranteed to be equivalent. The filename of the image on the other hand does not imply that the images are equivalent. In systemd we open verity devices as '<roothash>-verity', so that we know for sure we can reuse them. Do the same here, so that w...
diff --git a/libmount/src/hook_veritydev.c b/libmount/src/hook_veritydev.c index f91778ad95b..9206d9015dc 100644 --- a/libmount/src/hook_veritydev.c +++ b/libmount/src/hook_veritydev.c @@ -349,25 +349,8 @@ static int setup_veritydev( struct libmnt_context *cxt, backing_file = mnt_fs_get_srcpath(cxt->fs); if (!backi...
1
1
0
[{"id": "G0", "claim": "The strcat-based construction of mapper_device may overflow the destination per static analysis, and could be made shorter and easier for the static analysis by using asprintf.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
util-linux__util-linux__2488
util-linux/util-linux
2,488
defect
c89edac5c300a254dd9be09191702b9e5c8c536f
77e622d8458337e53afa021a6298cb9875a6e19c
tests: fix capability testing
The old capability testing logic would incorrectly interpret the following output from getpcaps as cap_wake_alarm being supported: $ getpcaps 0 0: cap_wake_alarm=i Instead of relying on brittle command output parsing at a test helper to detect capabilities. Note: I also have an implementation that just fixes ...
diff --git a/meson.build b/meson.build index 8e3d6bb1d93..76137715d10 100644 --- a/meson.build +++ b/meson.build @@ -3300,6 +3300,14 @@ endif ############################################################ +exe = executable( + 'test_cap', + 'tests/helpers/test_cap.c', + include_directories : includes, + dependenc...
1
1
0
[{"id": "G0", "claim": "The new test_cap.c helper could carry an MIT license instead of GPL-2.0-or-later.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
util-linux__util-linux__2571
util-linux/util-linux
2,571
defect
d8379563fe5c8a4adba12804abbe20e43a8e1cde
d69b4354f2d1c1bb97c7a5e17df9dc0233d0de92
lsfd: revise SOURCE column of tty related devices and fill ENDPOINTS column of ptmx and pts devices
This pull request has two highlights. A. utilize /proc/tty/drivers for filling SOURCE column of tty devices ``` With the orinal code: # lsfd -n -p 1789 -Q '(FD == 25)' systemd-logind 1789 root 25 rw- CHR /dev/vc/0:6 432 25 /dev/tty6 ----------------------------------------...
diff --git a/misc-utils/lsfd-cdev.c b/misc-utils/lsfd-cdev.c index 70751bab970..543f6231825 100644 --- a/misc-utils/lsfd-cdev.c +++ b/misc-utils/lsfd-cdev.c @@ -22,6 +22,7 @@ #include "lsfd.h" static struct list_head miscdevs; +static struct list_head ttydrvs; struct miscdev { struct list_head miscdevs; @@ -29...
3
2
1
[{"id": "G0", "claim": "In col_test, declare `output` and assign to it separately so the command substitution's return value is not masked.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The sscanf calls in read_ttydrv should be guarded by a check t...
null
util-linux__util-linux__2607
util-linux/util-linux
2,607
defect
02d6e367ea140c43294155a73735afa205a6e4a9
9ed019588379fe62ad017a7b2ab0f1f8844ef8d5
fix utab after external update
Fixes: https://github.com/util-linux/util-linux/issues/2554 Please take a look at the commit message of the second patch.
diff --git a/libmount/src/mountP.h b/libmount/src/mountP.h index de44c064ab0..59921cf7405 100644 --- a/libmount/src/mountP.h +++ b/libmount/src/mountP.h @@ -508,6 +508,7 @@ extern const struct libmnt_optmap *mnt_optmap_get_entry( /* optstr.c */ extern int mnt_optstr_remove_option_at(char **optstr, char *begin, char...
3
3
1
[{"id": "G0", "claim": "In the missing-options subtest of tests/ts/mount/special, the bare redirection '> $LIBMOUNT_UTAB' has no command, which the code scanner flags (alert 897, re-raised as alert 900).", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla...
null
util-linux__util-linux__2672
util-linux/util-linux
2,672
defect
5df4dd14f1e853a23a50e715d68f6e31d7600624
c14bee4d44ac8c61d56028f2f032e35c32533c38
libmount: utab event
This PR splits utab locking and utab changes reporting. The issue is that the lock can be used more than once during one mount(8) call when /sbin/mount.type helper used. The multiple events for one mount can make some applications that depend on x-* options in utab confused (e.g. gnome). After this, libmount will us...
diff --git a/libmount/src/context.c b/libmount/src/context.c index 6db71f4e477..810dd70a3c0 100644 --- a/libmount/src/context.c +++ b/libmount/src/context.c @@ -2209,7 +2209,7 @@ int mnt_context_update_tabs(struct libmnt_context *cxt) if (mnt_update_already_done(cxt->update, cxt->lock)) { DBG(CXT, ul_debugobj(...
2
1
1
[{"id": "G0", "claim": "Removing S_IRGRP|S_IROTH from the utab lock file's mode may break backwards compatibility for other users who monitor the file directly.", "category": "correctness", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The manpages of asprintf() do not say it se...
null
util-linux__util-linux__2841
util-linux/util-linux
2,841
defect
81c528c4fc4a31e9c8de04eb96e64be9e3967697
3025f716c4d3619a201e1c99628196b5ce50023e
tests: (lsfs) skip some test cases if making a NETLINK_SOCK_DIAG socket and/or sending a message via the socket are not allowed
Close #2822. As reported on #2822, some test cases that require a NETLINK_SOCK_DIAG socket for the AF_UNIX family failed. The platform where the test ran might disallow the test cases from making a NETLINK_SOCK_DIAG socket and/or sending a message via it. This pull request enhances test_mkfds to make a NETLINK_SO...
diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c index 642f8ec9a6d..39427ba09a2 100644 --- a/tests/helpers/test_mkfds.c +++ b/tests/helpers/test_mkfds.c @@ -34,6 +34,8 @@ #include <linux/if_packet.h> #include <linux/if_tun.h> #include <linux/netlink.h> +#include <linux/sock_diag.h> +# include <li...
3
3
0
[{"id": "G0", "claim": "The new helper's name lsfd_skip_or_failed_test_if_no_sockdiag is unwieldy and should be renamed (reviewer suggested ts_lsfd_check_sockdiag; author countered with lsfd_check_sockdiag).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", ...
null
util-linux__util-linux__2852
util-linux/util-linux
2,852
defect
7d16145c4696772bb5438a43a482f68fbf046370
012395573f22d5c4f821d443b815a557d8d316aa
<for the master branch> tests: (lsfs) skip some test cases if making a NETLINK_SOCK_DIAG socket and/or sending a message via the socket are not allowed
Do the same as #2841 but for the master branch. --- Close https://github.com/util-linux/util-linux/issues/2822 As reported on https://github.com/util-linux/util-linux/issues/2822, some test cases that require a NETLINK_SOCK_DIAG socket for the AF_UNIX family failed. The platform where the test ran might disall...
diff --git a/tests/helpers/test_mkfds.c b/tests/helpers/test_mkfds.c index b0d34c60509..4b67205f2ba 100644 --- a/tests/helpers/test_mkfds.c +++ b/tests/helpers/test_mkfds.c @@ -34,6 +34,8 @@ #include <linux/if_packet.h> #include <linux/if_tun.h> #include <linux/netlink.h> +#include <linux/sock_diag.h> +# include <li...
4
3
1
[{"id": "G0", "claim": "The variable expansions in the case patterns of lsfd_check_sockdiag ($EPROTONOSUPPORT, $EACCES, $ENOENT) should be quoted so they match literally rather than as glob patterns.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "In...
null
util-linux__util-linux__3066
util-linux/util-linux
3,066
defect
55ca447a6a95226fd031a126fb48b01b3efd6284
228dd962c0db7cf62fb30adfea9adbbd592f977f
libmount: expose exec errors
* Introduce special exit status 126 to inform about failed execl of the /sbin/[u]mount.<type> helpers. * Introduce MNT_ERR_EXEC as an API return code to inform about failed execl() calls. * Add mount and umount messages for failed execl() calls. * Add EXIT STATUS section to umount man page. Addresses: https...
diff --git a/libmount/src/context_mount.c b/libmount/src/context_mount.c index 53918c3fcae..677d7235616 100644 --- a/libmount/src/context_mount.c +++ b/libmount/src/context_mount.c @@ -460,7 +460,7 @@ static int exec_helper(struct libmnt_context *cxt) i, args[i])); DBG_FLUSH; execv(cxt->helper, (char * co...
1
1
1
[{"id": "G0", "claim": "The new user-facing strings 'failed to execute %s' (and those below it) should be wrapped in _() so they get localized, as the string already exists in the *.po files.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
util-linux__util-linux__3105
util-linux/util-linux
3,105
defect
6850e89e5b0b35e7bfe90915e56bd598c25f0b10
a67a7d6dd5c499f424fa86259255305268d3c6c3
kill: add a feature decoding signal masks
-d/--decode-mask option works well with the output of ps command: ``` $ ps s $$ UID PID PENDING BLOCKED IGNORED CAUGHT STAT TTY TIME COMMAND 1000 1588189 0000000000000000 0000000000010000 0000000000384004 000000004b813efb S pts/56 0:00 bash $ ...
diff --git a/misc-utils/kill.1.adoc b/misc-utils/kill.1.adoc index 40ab0248d1e..5421fe16f5f 100644 --- a/misc-utils/kill.1.adoc +++ b/misc-utils/kill.1.adoc @@ -19,8 +19,9 @@ kill - terminate a process *kill* [**-**_signal_|*-s* _signal_|*-p*] [*-q* _value_] [*-a*] [*--timeout* _milliseconds_ _signal_] [*--*] _pid...
8
7
1
[{"id": "G0", "claim": "Mask decoding should also be exposed through --list (e.g. kill --list 0x000000004b813efb), the option should be named --show-process-state rather than --decode-process-state, and the state should be reported in a more human-readable way: non-empty items only, human-readable group names, and sign...
null
util-linux__util-linux__3342
util-linux/util-linux
3,342
defect
4e14b5731efcd703ad13e24362448c87cecb5424
d6bcd515c0ecaf7af2fe96f97163fd8201695aa9
lsfd: support AF_VSOCK sockets
Example output: # ./lsfd -p 121067 -Q "TYPE == 'AF_VSOCK'" COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME test_mkfds 121067 root 4 rw---- AF_VSOCK sockfs 10 39400798 state=listen type=stream laddr=local:12345 test_mkfds 121067 root 5 rw---- A...
diff --git a/lsfd-cmd/lsfd.1.adoc b/lsfd-cmd/lsfd.1.adoc index 28f6abd5eb8..e3abb0690aa 100644 --- a/lsfd-cmd/lsfd.1.adoc +++ b/lsfd-cmd/lsfd.1.adoc @@ -275,6 +275,11 @@ Cooked version of KNAME. It is mostly same as KNAME. + Some files have special formats and information sources: + +AF_VSOCK::: +state=_SOCK.STATE_ ...
2
1
0
[{"id": "G0", "claim": "Quote the variable expansions ($EADDRNOTAVAIL, $ENODEV) in the case patterns of lsfd_check_vsock so they match literally rather than as a glob.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "make_vsock is a 136-line funct...
null
util-linux__util-linux__3439
util-linux/util-linux
3,439
defect
455e609f06810d01336b61a273673e4fddeb33c2
1bb7c8ab5c8c53dc3cd39b0748034528b7184a96
include/pidfd-utils: improve robustness
* Check for all SYS_* macros * Define UL_HAVE_PIDFD only if all syscalls are available Fixes: https://github.com/util-linux/util-linux/issues/3437
diff --git a/include/pidfd-utils.h b/include/pidfd-utils.h index 5bd59694a5b..26d52aa6030 100644 --- a/include/pidfd-utils.h +++ b/include/pidfd-utils.h @@ -36,34 +36,35 @@ # include <sys/syscall.h> # include <unistd.h> -# if defined(SYS_pidfd_send_signal) && defined(SYS_pidfd_open) -# ifndef HAVE_PIDFD_SEND_SIGNA...
2
1
1
[{"id": "G0", "claim": "If SYS_pidfd_getfd is not defined, pidfd_send_signal and pidfd_open are redefined (the real wrappers are still emitted while UL_HAVE_PIDFD stays undefined, so the fallback block also defines them) and misc-utils/kill.c fails to build.", "category": "correctness", "verdict": "supported", "priorit...
null
util-linux__util-linux__3491
util-linux/util-linux
3,491
defect
477752620c9826ce9b568045f3184d04464ff67e
7a84d59b6c37d1cfda43c81e21a7d2eddb27cde9
Use the 'fallthrough' attribute
C23[1] and CPP17[2] introduced the 'fallthrough' attribute to let the compiler know that we're intentionally falling through a case statement. This suppress a warning with new compilers when doing an implicit fallthrough. [1] https://en.cppreference.com/w/c/language/attributes/fallthrough [2] https://en.cppreferenc...
diff --git a/disk-utils/cfdisk.c b/disk-utils/cfdisk.c index d4057eedbf1..fe0b3624e1f 100644 --- a/disk-utils/cfdisk.c +++ b/disk-utils/cfdisk.c @@ -1578,7 +1578,7 @@ static int ui_menu_move(struct cfdisk *cf, int key) ui_menu_goto(cf, (int) m->idx - m->page_sz); return 0; } - /* fallthrough */ + FALL...
5
4
1
[{"id": "G0", "claim": "Similar changes replacing `/* FALL THROUGH */` comments should be added in lsfd-cmd/*.c.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "`#if C_HAS_C_ATTRIBUTE(x)` should pass 'fallthrough' as its argument rather than the ge...
null
util-linux__util-linux__3710
util-linux/util-linux
3,710
defect
c42f264120d9c12bdf4df0b31481b49b33540f68
b65689b9ade911ff14671f27820d632e6bb0e4f7
lib/canonicalize: cleanup and refactoring
- Remove duplicate code - Introduce a generic drop-permission function - Add regression test for path canonicalization (including suid test, based on Thomas' idea with tmpfs and nobody user) - Use `ul_` prefix for all calls
diff --git a/include/canonicalize.h b/include/canonicalize.h index ff6ef0dd6e4..81a30ed123a 100644 --- a/include/canonicalize.h +++ b/include/canonicalize.h @@ -20,7 +20,7 @@ extern char *canonicalize_path_restricted(const char *path); extern char *canonicalize_dm_name(const char *ptname); extern char *__canonicalize...
1
1
0
[{"id": "G0", "claim": "Kernel style: the tab-indented continuation line of the do_canonicalize() declaration in lib/canonicalize.c should not be indented.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}]
null
util-linux__util-linux__3716
util-linux/util-linux
3,716
defect
82ab7a2b175874c8af845fcbd376ac33b78e30be
5c9b9bd73ae577f4f1362a3db8d992c293ddb5e2
kill: add support for race-free killing of processes with the help of…
… pidfd The 6.9 Linux kernel added support for pidfds which introduces inodes that stay unique for the system lifetime and can be used to reference a process with both its traditional pid and pid fd inode number. This enables race-free killing of processes and protects from false referencing due to pid rollovers. ...
diff --git a/include/Makemodule.am b/include/Makemodule.am index bdf87e2213b..1cb97a04997 100644 --- a/include/Makemodule.am +++ b/include/Makemodule.am @@ -54,6 +54,7 @@ dist_noinst_HEADERS += \ include/partx.h \ include/path.h \ include/pathnames.h \ + include/pid-utils.h \ include/pidfd-utils.h \ include/p...
13
13
4
[{"id": "G0", "claim": "The caller must check the return value of ul_parse_pid_str() before using the parsed pid.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Single statements should not be wrapped in braces in the new pidfd code.", "category": "...
null
util-linux__util-linux__3757
util-linux/util-linux
3,757
defect
6fbde1c7db838e22b109e2e58eaa51b086758bc6
6ec07463291865d49ab2b8281d1197ed911cbb92
losetup: add support for the function to remove loop devices
The current -d/-D options only detach the loop device, do not actually remove the loop device. New parameters are added to support the removal of the loop device. Signed-off-by: Wu Guanghao <wuguanghao3@huawei.com>
diff --git a/include/loopdev.h b/include/loopdev.h index ec57a8c2f71..d5ef85107b1 100644 --- a/include/loopdev.h +++ b/include/loopdev.h @@ -160,7 +160,7 @@ extern int loopdev_is_used(const char *device, const char *filename, extern char *loopdev_find_by_backing_file(const char *filename, uint64_t offset, uint64_...
2
1
0
[{"id": "G0", "claim": "The --remove option documentation should be more specific and describe the difference between 'remove' and 'detach', including what happens if a file is associated with the device or the device is in use.", "category": "documentation", "verdict": "uncertain", "priority": "P2", "scope": "introduc...
null
util-linux__util-linux__3872
util-linux/util-linux
3,872
defect
75a776c64040c260b2cfe5e637a8cb8aa56e4b68
97ec2445e7289c62fad63dac6b25a95cbaadf2eb
libmount: add support mount-types (and ntfs3)
Based on the discussion from https://github.com/util-linux/util-linux/pull/3618 and based on discussion with systemd upstream. ~~This PR introduces mount-type (also known as ID_FS_MOUNTTYPE= in udev naming conventions) to libblkid and libmount. This new filesystem property is an optional extension to the classic fs-...
diff --git a/configure.ac b/configure.ac index cf415f5ed46..a424e09476b 100644 --- a/configure.ac +++ b/configure.ac @@ -1390,6 +1390,10 @@ AC_ARG_ENABLE([libmount-mountfd-support], AS_HELP_STRING([--disable-libmount-mountfd-support], [do not use new mount API based on FDs]), [], [enable_libmount_mountfd_support=...
2
1
1
[{"id": "G0", "claim": "The mount-type mapping and udev logic should live in libmount alone with simple bespoke logic instead of being tied into libblkid's struct blkid_idinfo (libblkid should keep returning the plain filesystem type such as ntfs), and the ID_FS_MOUNTTYPE property in the udev database and libblkid may ...
null
util-linux__util-linux__3904
util-linux/util-linux
3,904
defect
e0d602bab9354e8225f2b0ca063dd449caa64e1c
2477f4235d0c0e7c35aad7e037f02f8bfdc88258
lslocks: implement Q, --filter option
An example output: ``` # ./lslocks -Q 'TYPE == "FLOCK" and MODE == "READ"' COMMAND PID TYPE SIZE MODE M START END PATH udisksd 8500 FLOCK READ 0 0 0 /run/mount/utab.act ```
diff --git a/bash-completion/lslocks b/bash-completion/lslocks index e70a7418dd9..b2a617e71d7 100644 --- a/bash-completion/lslocks +++ b/bash-completion/lslocks @@ -41,6 +41,7 @@ _lslocks_module() --raw --notruncate --list-columns + --filter --help --version " diff --git a/misc-utils/lslocks.8.adoc b/...
17
13
5
[{"id": "G0", "claim": "The local variable json added in init_scols_filter hides the global variable of the same name.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The condition should be written `!(for_filter && l->pid < 0)` without the space...
null
util-linux__util-linux__3917
util-linux/util-linux
3,917
defect
e4656fa9765f55eb4dcd45ca63b5eea43e59551b
52307619a3bb73fd907288cb46770134a6f9cb36
fix: use Py_REFCNT macro to work with free-threaded python
This PR adapts `libmount/python/{fs,tab}.c` to work with free-threaded python, where `ob_refcnt` is not a member of PyObject anymore, but where Py_REFCNT is recommended. Note that https://docs.python.org/3/c-api/structures.html#c.PyObject.ob_refcnt says: > Do not use this field directly; instead use functions and m...
diff --git a/libmount/python/fs.c b/libmount/python/fs.c index cb48c43a187..de617a59bb2 100644 --- a/libmount/python/fs.c +++ b/libmount/python/fs.c @@ -639,8 +639,13 @@ static PyMethodDef Fs_methods[] = { static void Fs_destructor(FsObject *self) { +#if PY_VERSION_HEX < 0x03120000 DBG(FS, pymnt_debug_h(self->fs,...
2
2
1
[{"id": "G0", "claim": "The `PY_VERSION_HEX < 0x03120000` version check is incorrect — Py_REFCNT has existed since Python 2.6, so the code should use Py_REFCNT unconditionally instead of gating it (and the hex literal 0x03120000 is wrong for 3.12 anyway), which also matters because free-threaded Python 3.13+ cannot acc...
null
util-linux__util-linux__3924
util-linux/util-linux
3,924
defect
e4656fa9765f55eb4dcd45ca63b5eea43e59551b
62e19e422e0e274cc135a4fb99ec80050a683866
libsmartcols: fix cumulative width reduction during repeated printing
This PR fixes an issue in libsmartcols where repeated printing of the same table could cause the effective output width to shrink over time. The root cause was that __scols_initialize_printing() applied scols_table_reduce_termwidth() by mutating termwidth. When printing was invoked multiple times on the same tabl...
diff --git a/libsmartcols/src/calculate.c b/libsmartcols/src/calculate.c index 30d67c14965..dbf04af1505 100644 --- a/libsmartcols/src/calculate.c +++ b/libsmartcols/src/calculate.c @@ -18,7 +18,7 @@ static void dbg_column(struct libscols_table *tb, struct libscols_column *cl) cl->seqnum, cl->header.data, cl->width...
4
3
1
[{"id": "G0", "claim": "Rename the test helper from `libsmartcols-termreduce-loop` to `test_libsmartcols_termreduce_loop` so the CI build properly ignores the build artifact and it is easier to distinguish as a test helper binary.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "intr...
null
util-linux__util-linux__3950
util-linux/util-linux
3,950
defect
2de0133909f6cb9ffc214993c3ffda877298d6cd
402d0c7b9c5f9be3dbb8fbd4bb6b9cde49709564
lsfd: fill MNTID coulmn for shm, mem, exe, cwd, and rtd assocations
Example output: ```console [yamato@dev64]~/var/util-linux/util-linux% ./lsfd -p $$ -Q 'MNTID != 0' COMMAND PID USER ASSOC XMODE TYPE SOURCE MNTID INODE NAME zsh 4112322 yamato exe ------ REG dm-0 70 1839844 /usr/bin/zsh zsh 4112322 yamato cwd ------ DIR dm-3 53 26214675 /ho...
diff --git a/include/path.h b/include/path.h index f413ea3f9da..6ba7a9bb0ec 100644 --- a/include/path.h +++ b/include/path.h @@ -56,6 +56,15 @@ int ul_path_stat(struct path_cxt *pc, struct stat *sb, int flags, const char *pa int ul_path_vstatf(struct path_cxt *pc, struct stat *sb, int flags, const char *path, va_list ...
6
4
1
[{"id": "G0", "claim": "ul_path_statx() should handle leading slashes in the path parameter like ul_path_stat() does, since the inconsistency could cause issues if absolute paths are passed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The comment...
null
util-linux__util-linux__3983
util-linux/util-linux
3,983
defect
c4fcb11334652f00e24ee16c2d0cf848caa4f592
b7000d509eb4dfab5c072bd495928256c9aad319
lsfd: (bugfix) do not reuse stat(2) buffer for files with identical names
To reduce the number of stat(2) calls, lsfd reused the buffer returned from stat(2) when file descriptors opened files with the same name. If file descriptors open different files that happen to have the same name, lsfd may report incorrect results. In such cases, the stat(2) buffer must not be reused. The progra...
diff --git a/lsfd-cmd/lsfd.c b/lsfd-cmd/lsfd.c index 0776ecfbc4d..1326082d5ea 100644 --- a/lsfd-cmd/lsfd.c +++ b/lsfd-cmd/lsfd.c @@ -886,20 +886,11 @@ static struct file *collect_file_symlink(struct path_cxt *pc, { char sym[PATH_MAX] = { '\0' }; struct stat sb = { .st_mode = 0 }; - struct file *f, *prev; + struct ...
5
3
1
[{"id": "G0", "claim": "Removing the reuse of the previous stat(2) result for files with the same real path will likely affect lsfd performance, even though correct information matters more.", "category": "performance", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The option-...
null
util-linux__util-linux__4012
util-linux/util-linux
4,012
defect
dcdf40efec22fc6a3eb2d41991f8fadcd78f110a
c7fff8f13754b4fff1171b6a6f3ad9dbf1db27c4
lsfd: fill SOCK.NETNS even when sock_diag netlink can't report sockets
lsfd could not fill SOCK.NETNS when socket netns information was not available via sock_diag netlink. Although TCP sockets support sock_diag, unbound/unconnected TCP sockets are not reported there, so SOCK.NETNS remained empty for them. lsfd already obtained socket netns information via ioctl(SIOCGSKNS) in load_...
diff --git a/lsfd-cmd/Makemodule.am b/lsfd-cmd/Makemodule.am index 0f96ce14750..4674cff9ca0 100644 --- a/lsfd-cmd/Makemodule.am +++ b/lsfd-cmd/Makemodule.am @@ -20,7 +20,8 @@ lsfd_SOURCES = \ lsfd-cmd/unkn.c \ lsfd-cmd/fifo.c \ lsfd-cmd/pidfd.h \ - lsfd-cmd/pidfd.c + lsfd-cmd/pidfd.c \ + lsfd-cmd/util.c lsfd_LDA...
4
3
2
[{"id": "G0", "claim": "When fstat fails, collect_pidfs_file returns the successfully opened pidfd instead of closing it and returning -1, which leaks a file descriptor on each fstat failure.", "category": "correctness", "verdict": "opposed", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The include ...
null
util-linux__util-linux__4199
util-linux/util-linux
4,199
defect
8ecb24ae653c1329b34746e9ac8415f428ba33cb
866acda0396731232344976b7fa979459f6f3080
bits: prevent unsigned integer underflow and long-lived loop
GDB proof of wraparound due to underflow ```Bash parse_mask_or_list (cmdline_arg=0x7fffffffdecf "1", all_bits=<optimized out>, width=<optimized out>) at text-utils/bits.c:70 70 for (n = cpuset_nbits(size) - 1; n >= width; n--) (gdb) step 71 CPU_CLR_S(n, size, bits); (gdb) print n $9 = 18446744073709551615 ``...
diff --git a/lib/cpuset.c b/lib/cpuset.c index d6469203092..4acefbdbb8d 100644 --- a/lib/cpuset.c +++ b/lib/cpuset.c @@ -100,7 +100,7 @@ cpu_set_t *cpuset_alloc(int ncpus, size_t *setsize, size_t *nbits) { cpu_set_t *set = CPU_ALLOC(ncpus); - if (!set) + if (!set || !ncpus) return NULL; if (setsize) *setsi...
1
1
0
[{"id": "G0", "claim": "cpuset_alloc should not call CPU_ALLOC when ncpus is 0 (allocate only if ncpus is nonzero) to avoid malloc(0) and possible static analyzer warnings, per the suggested code shape.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
util-linux__util-linux__4248
util-linux/util-linux
4,248
defect
2f0a4512ea813b050172207c88ddfa9ace12d830
0a41dfe8bfc4c474c289e4a24b9d16a5fb8faf90
Remove extra newlines from error/warning messages
The `errx`/`warnx` functions add a newline by themselves. Adding one to the message thus leads to two in output. This covers tools which are installed but also test and sample code. Some examples how to trigger these messages (excluded are sample tools, test tools, eject, wdctl, one feature of sulogin): ``` $ t...
diff --git a/disk-utils/mkfs.minix.c b/disk-utils/mkfs.minix.c index 2b7ab3d2a2c..6a9c7ba81db 100644 --- a/disk-utils/mkfs.minix.c +++ b/disk-utils/mkfs.minix.c @@ -725,7 +725,7 @@ static void determine_device_blocks(struct fs_control *ctl, const struct stat *s ctl->fs_blocks = dev_blocks; else if (dev_blocks < ct...
1
1
1
[{"id": "G0", "claim": "The signal-handler message is missing a trailing \\n, and strsignal() is not signal-safe due to locales, so it would be better to use ul_sig_printf with sigabbrev_np(sig) instead of strsignal(sig).", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
util-linux__util-linux__4274
util-linux/util-linux
4,274
defect
fff8c59c75355d365a69f86719e7bd7818c1daf4
5e236cce3f37d6f18ac0c44abf3c63d0d694f8f4
renice: use proper types and strutils for ID parsing
Use ul_strtou32() instead of strtol() to parse PID/UID/GID and reject negative values. Use strtos32_or_err() for priority. Change 'who' type to uid_t and adjust getprio()/donice(). Use %u for unsigned IDs. Addresses: https://github.com/util-linux/util-linux/issues/4272
diff --git a/sys-utils/Makemodule.am b/sys-utils/Makemodule.am index ce91468e641..d79ff34e5d5 100644 --- a/sys-utils/Makemodule.am +++ b/sys-utils/Makemodule.am @@ -104,6 +104,7 @@ usrbin_exec_PROGRAMS += renice MANPAGES += sys-utils/renice.1 dist_noinst_DATA += sys-utils/renice.1.adoc renice_SOURCES = sys-utils/ren...
2
2
1
[{"id": "G0", "claim": "renice's user parsing should transition to ul_getuserpw_str(), which would also simplify the code.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "`who` holds a PID, process-group ID or UID, not only a UID, so the pull r...
null
utkuozdemir__pv-migrate__250
utkuozdemir/pv-migrate
250
defect
be50b1a39dec7499e64c37bc8c7a23b6e27ad2b2
ca3e5571803828a56fa9897add44ae2307c5dab9
fix: fix empty space formatting issue in the rsync job helm template
Signed-off-by: Alex Romanenko <alex@vmware.com ## Types of changes <!--- What types of changes does your code introduce? Put an `x` in all the boxes that apply: --> - [x] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix...
diff --git a/helm/pv-migrate/templates/rsync/job.yaml b/helm/pv-migrate/templates/rsync/job.yaml index 71ac5af97..943b9e40d 100644 --- a/helm/pv-migrate/templates/rsync/job.yaml +++ b/helm/pv-migrate/templates/rsync/job.yaml @@ -38,7 +38,7 @@ spec: rc=1 retries={{ .Values.rsync.maxRetries ...
1
1
1
[{"id": "G0", "claim": "The new migrateCmdlineWithNetpolsAndRsyncFixPrivateKeyPerms value is missing a leading space before --helm-set, so the concatenated helm command line would be malformed.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
utkuozdemir__pv-migrate__369
utkuozdemir/pv-migrate
369
defect
9b4a501bcc948228f831ffda876934766ea6253a
06b6a52110c792389a3a811f1bbbdc673945d797
refactor: merge helm values in memory instead of using temp file
Use Helm's own loader.MergeMaps to merge programmatic base values with user-provided overrides, eliminating the temp file round-trip through writeHelmValuesToTempFile.
diff --git a/go.mod b/go.mod index 0ed1631aef..7235867af8 100644 --- a/go.mod +++ b/go.mod @@ -13,12 +13,12 @@ require ( github.com/stretchr/testify v1.11.1 golang.org/x/crypto v0.48.0 golang.org/x/sync v0.19.0 - gopkg.in/yaml.v3 v3.0.1 helm.sh/helm/v4 v4.1.1 k8s.io/api v0.35.2 k8s.io/apimachinery v0.35.2 ...
1
1
0
[{"id": "G0", "claim": "The tests added in internal/strategy/merge_values_test.go construct slog loggers writing Info-level output to os.Stderr, causing noisy test output; they should use an io.Discard-backed handler or raise the handler level, and reuse a small helper instead of repeating the setup.", "category": "mai...
null
utkuozdemir__pv-migrate__380
utkuozdemir/pv-migrate
380
defect
b83a9a1e73d1d15cba21c1303c10c38e7d85d899
578301027df6b726efa7c8c3be061f661cbb33a0
feat: use pv-migrate version as the helm chart version
So the manifests on the cluster would clearly reflect the pv-migrate version.
diff --git a/Taskfile.yml b/Taskfile.yml index c7d6723049..edb076b509 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -8,7 +8,9 @@ tasks: sh: head -n 1 go.mod | cut -d' ' -f2 cmds: - go mod tidy + - go fix ./... - golangci-lint run --fix ./... + - golangci-lint fmt ./... - s...
4
3
2
[{"id": "G0", "claim": "Chart.yaml now hardcodes version/appVersion as 0.0.0 while the chart README still advertises 0.5.0, so the embedded chart metadata and its documentation diverge; the README (or badge text) should be regenerated/updated to match.", "category": "documentation", "verdict": "supported", "priority": ...
null
utkuozdemir__pv-migrate__386
utkuozdemir/pv-migrate
386
defect
d1635bed80f43d99a753b61f9a90844967cd4da3
36c67817f584491d534108571c755af0c584b9d6
feat: add --rsync-extra-args flag
Add a --rsync-extra-args CLI flag that passes arbitrary rsync flags through all strategies, including the local strategy which runs rsync via SSH session rather than a Kubernetes Job. The Helm chart already supports rsync.extraArgs for Job-based strategies; this fills the gap for programmatic/local usage.
diff --git a/USAGE.md b/USAGE.md index 2a06b34215..0a6a347eee 100644 --- a/USAGE.md +++ b/USAGE.md @@ -35,6 +35,7 @@ Flags: -x, --no-cleanup Do not clean up after migration --no-compress Do not compress data during migration (disables rsync -z) --non-root ...
2
1
1
[{"id": "G0", "claim": "RsyncExtraArgs is appended as a raw string into a command executed via sh -c (and over SSH for the local strategy), so unescaped spaces, quotes or shell metacharacters can break argument parsing or allow unintended shell interpretation; it suggests changing ExtraArgs to a []string (or StringArra...
null
utkuozdemir__pv-migrate__390
utkuozdemir/pv-migrate
390
defect
49cdd5e1e78c283feee7f969d9117953c264a767
785be95e850e8abe67d420e5e7626bc3a7e3ad2c
feat: add --rsync-push flag for push-based migrations
Add a push mode where the rsync Job runs on the source side and sshd on the destination side. This reverses the default pull topology and is useful when the source cluster cannot expose a public IP but the destination can. The implementation introduces a topology abstraction that maps sshd and rsync components to so...
diff --git a/integration/integration_test.go b/integration/integration_test.go index 4f249061cf..7e97f2aab6 100644 --- a/integration/integration_test.go +++ b/integration/integration_test.go @@ -125,6 +125,7 @@ func TestIntegration(t *testing.T) { t.Run("NodePortCustomPort", testNodePortCustomPort) t.Run("NonRoot",...
1
1
0
[{"id": "G0", "claim": "Since --rsync-push changes behavior for all SSH-based strategies (ClusterIP/LoadBalancer/NodePort) but the integration suite only adds coverage for ClusterIP push mode, push-mode integration cases for NodePort and LoadBalancer should be added to prevent regressions in the new shared two-release ...
null
utooland__utoo__2739
utooland/utoo
2,739
defect
0b96d1b68f4a31e0a33cd55f458ccf9652db1be2
9809edbb12293e5ef4ec0a7b445e85d260fc5bd7
refactor(pack): simplify BundlerTurboTasks into UtooTurboTasks type alias
## Summary - Replaces the `BundlerTurboTasks` enum with a simpler `UtooTurboTasks` type alias, eliminating unnecessary indirection. - introduce [dial9](https://tokio.rs/blog/2026-03-18-dial9) for profiling ### Changes - **pack-api**: Rename `tasks.rs` to `turbo_tasks.rs`; replace `BundlerTurboTasks` enum with...
diff --git a/Cargo.lock b/Cargo.lock index 0d99c22fca..55a78a369d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -542,6 +542,31 @@ dependencies = [ "generic-array", ] +[[package]] +name = "bon" +version = "3.9.1" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "f47dbe92550676ee653353c310...
1
1
1
[{"id": "G0", "claim": "The dial9 trace file path is set relative to the current working directory while standard tracing (TURBOPACK_TRACING) writes its log relative to project_path, so for consistency the dial9 trace file should respect project_path (e.g. by cloning project_path before the future block and using it he...
null
utrack__clay__105
utrack/clay
105
defect
86886ca93a5b147910985900d9500df5fb2b7173
d4e04f576c7f459e41b8941f8ebaec24db7594bd
proto gen: support optionals for proto syntax 3
Based on the [issue](https://github.com/utrack/clay/issues/104) raised, this PR adds support for optional fields in proto 3. It also contains a test case for an optional field.
diff --git a/.gitignore b/.gitignore index b8d1b1a..4d73065 100644 --- a/.gitignore +++ b/.gitignore @@ -70,6 +70,7 @@ _testmain.go !/integration/additional_bindings/strings/strings.to_upper.go !/integration/binding_with_body_and_response/strings/strings.go !/integration/binding_with_body_and_response/strings/string...
3
1
0
[{"id": "G0", "claim": "The nil check in the generated integration handler should be written the Go way: `if req.Str == nil` instead of `if nil == req.Str`.", "category": "style", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The author should check whether a field can carry b...
null
utrack__clay__45
utrack/clay
45
defect
fca261978287a007a9e5962b64241e4e3e9633db
54b04da9bddb7ff82a1a34c6f962494d5303ba00
Update grpc-gataway (supporting response_body in google.api.HttpRule)
Also: * use AST during generation implementation * fix generation in case of snake_case in service name or request/response type
diff --git a/.gitignore b/.gitignore index 084011e..2173e03 100644 --- a/.gitignore +++ b/.gitignore @@ -39,11 +39,11 @@ _testmain.go /integration/**/*.pb.*go # Unignore some files, used in tests !/integration/impl_exists/strings/strings.pb.impl.go -!/integration/impl_exists/strings/strings.toupper.pb.impl.go -!/int...
4
4
0
[{"id": "G0", "claim": "The nesting levels in the new typeExists/methodExists helpers in handler.go should be reduced (e.g. early nil return and continue-style guards, as in the suggested snippet).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "...
null
uudashr__gocognit__10
uudashr/gocognit
10
defect
8514510253e0672037c2a78ba586e21b70a8c6eb
6ed2d52b1bf99a1ddd1a201c9489bc435adf8999
Fix gocognit output when a function has generic receiver type
recvString func in gocognit returns BADRECV when the function's receiver is a generic type.
diff --git a/gocognit.go b/gocognit.go index 418c163..a36a693 100644 --- a/gocognit.go +++ b/gocognit.go @@ -4,6 +4,7 @@ import ( "fmt" "go/ast" "go/token" + "strings" "golang.org/x/tools/go/analysis" "golang.org/x/tools/go/analysis/passes/inspect" @@ -57,6 +58,15 @@ func recvString(recv ast.Expr) string { ...
4
4
2
[{"id": "G0", "claim": "The pull request should stay backward compatible with Go 1.16 instead of requiring 1.18: ast.IndexListExpr does not exist before go1.18 and bumping go.mod to 1.18 drops the minimum required version, so build constraints should be used instead.", "category": "correctness", "verdict": "supported",...
null
uuidjs__uuid__833
uuidjs/uuid
833
defect
913e958b1bf442ce00b3b244620698434f684025
10225d93d2ae010753966667801b84781bb416bd
fix: exporting types
<!-- Thank you for your contribution! If your pull request contains considerable changes please run the benchmark before and after your changes and include the results in the pull request description. To run the benchmark execute: npm run test:benchmark from the root of this repository. --> This expo...
diff --git a/src/index.ts b/src/index.ts index 3193e9a3..26ac9cda 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,3 +1,10 @@ +export type { + UUIDTypes, + Version1Options, + Version4Options, + Version6Options, + Version7Options, +} from './_types.js'; export { default as MAX } from './max.js'; export { defaul...
2
2
0
[{"id": "G0", "claim": "Replace the enumerated type export list with `export type * from './_types.js'`, which works now and will be more future proof as types are added or removed (asking the author to test for their use case).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introd...
null
uutils__procps__112
uutils/procps
112
defect
8ecd780c98d554dfed8c7d8b31a06ec4b5681a29
c1e642b353bd03672de02b676a96958b72fa3dd7
pidof: Add command `pidof`
fix #93
diff --git a/Cargo.lock b/Cargo.lock index 24f55a2b..ef2eaffb 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -524,6 +524,7 @@ dependencies = [ "textwrap", "uu_free", "uu_pgrep", + "uu_pidof", "uu_pmap", "uu_pwdx", "uu_slabtop", @@ -867,6 +868,15 @@ dependencies = [ "walkdir", ] +[[package]] +name = "uu_pi...
6
5
4
[{"id": "G0", "claim": "Some options the implementation uses, for example -z, are not present in the procps-ng 4.0.4 pidof the reviewer checked, so the reviewer asks which pidof version is used as reference.", "category": "correctness", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "cla...
null
uutils__procps__123
uutils/procps
123
defect
91b8fd276c98a373f5ba36e6d383a7672acbad27
379783ca3eb56234e43aa09021081f2525fe02a2
pidof: Implemented `-o`
fix #119 This commit implemented two usage of `-o` which are already implemented in GNU's implementation, but not in ours. ```shell ❯ cargo run pidof zsh 116473 116472 116401 116391 ❯ cargo run pidof -o116473,116472 zsh 116401 116391 ❯ cargo run pidof -o116473 -o116472 zsh 116401 116391 ``` And the...
diff --git a/src/uu/pidof/src/pidof.rs b/src/uu/pidof/src/pidof.rs index e0dbb12d..dd719366 100644 --- a/src/uu/pidof/src/pidof.rs +++ b/src/uu/pidof/src/pidof.rs @@ -137,6 +137,7 @@ pub fn uu_app() -> Command { Arg::new("o") .short('o') .help("Omit results with a given PI...
2
2
0
[{"id": "G0", "claim": "The test_quiet test can be simplified to a single chained call ending in no_output() instead of binding the command, capturing stdout and asserting it is empty.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The test_s_fl...
null
uutils__procps__124
uutils/procps
124
defect
91b8fd276c98a373f5ba36e6d383a7672acbad27
3e39a93e84f4b974b4570918b462a90070cb3951
pidof: Return multiple PIDs while multiple program
fix #118 This commit fixed `-s` flag only output one result. Before this commit: ```shell ❯ cargo run pidof -s zsh zsh zsh 218159 ``` After: ```shell ❯ cargo run pidof -s zsh zsh zsh 218159 218159 218159 ``` The behavior of uutils' implementation are as same as GNU's implementation now. ```shell ❯ cargo run pido...
diff --git a/src/uu/pidof/src/pidof.rs b/src/uu/pidof/src/pidof.rs index e0dbb12d..1cd30566 100644 --- a/src/uu/pidof/src/pidof.rs +++ b/src/uu/pidof/src/pidof.rs @@ -75,27 +75,32 @@ fn collect_matched_pids(matches: &ArgMatches) -> Vec<ProcessInformation> { .copied() .collect::<Vec<_>>(); - let m...
2
2
1
[{"id": "G0", "claim": "Use `trim` or `trim_end` in `test_s_flag` instead of the `replace` on line 45 of tests/by-util/test_pidof.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The `test_s_flag` assert passes without the changes to `pidof.rs...
null
uutils__procps__138
uutils/procps
138
defect
fdeca84c217e2b0805e986a44549752a91d4448b
a163d8cf26749b57cb6412f603aeb21f9c8cfaf9
pgrep: Add `TerminalType::Unknown` and implement `Display` for `TerminalType`
fix #136
diff --git a/src/uu/pgrep/src/process.rs b/src/uu/pgrep/src/process.rs index bd0145fa..8f6e6916 100644 --- a/src/uu/pgrep/src/process.rs +++ b/src/uu/pgrep/src/process.rs @@ -17,13 +17,29 @@ pub enum TerminalType { Tty(u64), TtyS(u64), Pts(u64), + Unknown, +} + +impl Display for TerminalType { + fn...
3
2
2
[{"id": "G0", "claim": "End-to-end tests should be added for the new `?` terminal syntax, e.g. `pgrep --terminal=? kthreadd` succeeding and `pgrep --terminal=tty1 kthreadd` failing.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "When /proc/<pid>/fd cann...
null
uutils__procps__167
uutils/procps
167
defect
a888a886efc92df07ff6e27e01ee4438b148ce36
1e5cbffab1cda72c6c61c177835d7ae2d90d91e0
pidwait: Add command `pidwait`
fix #28
diff --git a/Cargo.lock b/Cargo.lock index e2ecf286..b0a06d77 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -632,6 +632,7 @@ dependencies = [ "uu_free", "uu_pgrep", "uu_pidof", + "uu_pidwait", "uu_pmap", "uu_ps", "uu_pwdx", @@ -1039,6 +1040,17 @@ dependencies = [ "uucore", ] +[[package]] +name = "uu_pidw...
12
11
6
[{"id": "G0", "claim": "The author cannot get the new test_waiting to work — background `sleep` processes are not seen by pidwait and the test fails — and asks the reviewers for help testing spawning/waiting.", "category": "testing", "verdict": "uncertain", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim"...
null
uutils__procps__189
uutils/procps
189
defect
e02b93a3d2045630566cd1cb5bf768298cc2c39b
4d5328eb133f68e2ff88375bd28e480cf3c77d18
top: Add command `top`
Fix #84
diff --git a/Cargo.lock b/Cargo.lock index c7e9fee6..29a165d7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -637,6 +637,7 @@ dependencies = [ "uu_ps", "uu_pwdx", "uu_slabtop", + "uu_top", "uu_w", "uu_watch", "uucore", @@ -1089,6 +1090,19 @@ dependencies = [ "uucore", ] +[[package]] +name = "uu_top" +vers...
9
8
6
[{"id": "G0", "claim": "The PR field is missing the `rt` marker, mostly outputs 0 or 19 instead of 20, and the TIME+ field output is incorrect.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "test_flag_user fails on Windows.", "category": "testing", ...
null
uutils__procps__203
uutils/procps
203
defect
6e484990659e628ed7be583c7c9ca37899328e69
e7a893d01af4bd23f01319b59816dbee9d71372e
snice: Add command `snice`
Fix #30
diff --git a/Cargo.lock b/Cargo.lock index 6b94145b..8bc6740a 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -637,6 +637,7 @@ dependencies = [ "uu_ps", "uu_pwdx", "uu_slabtop", + "uu_snice", "uu_top", "uu_w", "uu_watch", @@ -1090,6 +1091,17 @@ dependencies = [ "uucore", ] +[[package]] +name = "uu_snice" +...
6
5
1
[{"id": "G0", "claim": "The `snice` entry in the README's `Ongoing` list should be placed alphabetically (before `top`, per the suggestion block).", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The command is very poorly documented and lacks a b...
null
uutils__procps__249
uutils/procps
249
defect
44a7a970d2a0196c4264a25ac8e4a024a45c405d
e1ed6961ea3d5b317be0fc2d6c19dce539aa9f68
pmap: implement `--device`
This PR implements `-d`/`--device` and creates output in the following format: ``` 13176: ../hello_world/target/debug/hello_world Address Kbytes Mode Offset Device Mapping 000060ab2984a000 24 r---- 0000000000000000 008:00008 hello_world 000060ab29850000 248 r-x-- 0000000000006000...
diff --git a/src/uu/pmap/src/maps_format_parser.rs b/src/uu/pmap/src/maps_format_parser.rs index 815cf4ea..8d9ced8d 100644 --- a/src/uu/pmap/src/maps_format_parser.rs +++ b/src/uu/pmap/src/maps_format_parser.rs @@ -3,15 +3,58 @@ // For the full copyright and license information, please view the LICENSE // file that w...
3
2
1
[{"id": "G0", "claim": "The map_err on the output_device_format/output_default_format calls silently swallows the error and exits with code 1 without printing any error message, and the reviewer asks whether that is expected.", "category": "correctness", "verdict": "uncertain", "priority": "P2", "scope": "introduced"},...
null
uutils__procps__308
uutils/procps
308
defect
ab6e081faa0a8454e576706c7f2fdab8abf663c2
30642c45a24d80eedd5776dc86436d5e568feae2
sysctl: Add tool
This supports basic get and set of sysctls on Linux. Main missing thing is reading /etc/sysctl.d files.
diff --git a/Cargo.lock b/Cargo.lock index e03ba19f..70ed98d6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -621,6 +621,7 @@ dependencies = [ "uu_pwdx", "uu_slabtop", "uu_snice", + "uu_sysctl", "uu_top", "uu_w", "uu_watch", @@ -1121,6 +1122,16 @@ dependencies = [ "uucore", ] +[[package]] +name = "uu_sysc...
3
3
1
[{"id": "G0", "claim": "The crate description is incorrect — it describes pwdx (\"Report current working directory of a process\") instead of sysctl.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The read-error branch should be rewritten as a get_s...
null
uutils__procps__318
uutils/procps
318
defect
f934fa52411d614377d861694a89e84064136716
16f4d5c743f5ee07e9e5b266d03fbcbde533bed8
pidof: Support '-t' flag
This flag makes pidof print thread ids of threads belonging to the matching processes.
diff --git a/src/uu/pgrep/src/process.rs b/src/uu/pgrep/src/process.rs index 46fa407f..c207cd3b 100644 --- a/src/uu/pgrep/src/process.rs +++ b/src/uu/pgrep/src/process.rs @@ -186,6 +186,8 @@ pub struct ProcessInformation { cached_stat: Option<Rc<Vec<String>>>, cached_start_time: Option<u64>, + + cached_t...
3
3
3
[{"id": "G0", "claim": "A test should be added to the pull request so the new behaviour doesn't regress.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "With -t, the thread IDs are listed in ascending order whereas the original pidof lists them in descen...
null
uutils__procps__321
uutils/procps
321
defect
9efa78365538f7829a5346dc44ad6e14c1f1c89e
68007a7687eb20ae6149997f6fcd61d8dfb1795e
Unify matching logic in pgrep and pkill
Currently pgrep and pkill implement slightly different set command line args for process matching, even though both commands should support the same features. This PR extends the functionality of both tools to their superset of features. This will allow deduplicating the process matching part into a common module in a ...
diff --git a/src/uu/pgrep/src/pgrep.rs b/src/uu/pgrep/src/pgrep.rs index e59c5cb1..dca29a00 100644 --- a/src/uu/pgrep/src/pgrep.rs +++ b/src/uu/pgrep/src/pgrep.rs @@ -10,6 +10,8 @@ use clap::{arg, crate_version, Arg, ArgAction, ArgGroup, ArgMatches, Command}; use process::{walk_process, ProcessInformation, Teletype}; ...
2
2
0
[{"id": "G0", "claim": "The new test_require_handler test should also assert that there is no output on the failing invocation.", "category": "testing", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The match block in parse_signal_value could be simplified using ok_or_else.", ...
null
uutils__procps__323
uutils/procps
323
defect
98a2356089b6541a104c9717dc2fc11d685136ae
5a1113467dd45ff09c00284b7ff667565a79e070
pidwait: Use common process_matcher (+ move a pidwait feature there)
Copy remaining process-matching feature of pidwait to process_matcher so pgrep and pkill can utilize it, then move pidwait to use the common process_matcher as well.
diff --git a/src/uu/pgrep/src/pgrep.rs b/src/uu/pgrep/src/pgrep.rs index c947c2d8..b1856abb 100644 --- a/src/uu/pgrep/src/pgrep.rs +++ b/src/uu/pgrep/src/pgrep.rs @@ -7,7 +7,7 @@ pub mod process; pub mod process_matcher; -use clap::{arg, crate_version, Arg, ArgAction, ArgGroup, Command}; +use clap::{arg, crate_vers...
1
1
1
[{"id": "G0", "claim": "The pull request enables pkill's unimplemented `-q/--queue` arg (uncomments it in uu_app), and the reviewer asks whether that was intentional.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uutils__procps__362
uutils/procps
362
defect
2b40bff510db9628a7182d4a7bb79bc9fb98071b
8941794a214131b51a640914876673e59e3a94a8
tload: Basic implementation of `tload`
This pr add `tload` command with `modern` tui. The `legacy` tui will be implemented in another pr. And also our fresh look: [![asciicast](https://asciinema.org/a/z8obn9c5JlNFd8HIHGx6YdYh4.svg)](https://asciinema.org/a/z8obn9c5JlNFd8HIHGx6YdYh4)
diff --git a/Cargo.lock b/Cargo.lock index 0d71aed9..f0ad6ced 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -11,6 +11,12 @@ dependencies = [ "memchr", ] +[[package]] +name = "allocator-api2" +version = "0.2.21" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "683d7910e743518b0e34f1186f9...
11
9
2
[{"id": "G0", "claim": "Use \"graphical\" instead of \"graphic\" in the uu_tload package description for consistency with the README.", "category": "documentation", "verdict": "uncertain", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "Consider adding unit tests for ModernTui rendering behavior to ver...
null
uutils__procps__363
uutils/procps
363
defect
dd470f471835377accd7d5d61cb8e6609c867fab
33a55e6a2067e1c4f8f1ab2b68195781023737a5
watch: handle WATCH_INTERVAL
Resolves #25. Handle `WATCH_INTERVAL`, as override for the `-n, --interval` option in `watch`.
diff --git a/src/uu/watch/src/watch.rs b/src/uu/watch/src/watch.rs index 6343c79a..b1e7d6bb 100644 --- a/src/uu/watch/src/watch.rs +++ b/src/uu/watch/src/watch.rs @@ -118,6 +118,7 @@ pub fn uu_app() -> Command { .long("interval") .help("Seconds to wait between updates") ...
4
4
2
[{"id": "G0", "claim": "Fix the CI failure by formatting the code with `rustfmt`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fix the CI failure in `test_watch::test_interval_environment_variable`, which on macOS ran `echo -n hello` yielding ...
null
uutils__procps__367
uutils/procps
367
defect
d1bd104b91366a7ebe7e7680ffd36f4227d989a0
6868478d1cca66750593ec84fcbfdb608f424080
vmstat: add basic implementation of `vmstat`
Add basic implementation of `vmstat` on Linux platform. resolves #33
diff --git a/Cargo.lock b/Cargo.lock index 1b7c277c..fc2ccac5 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,6 +2,12 @@ # It is not intended for manual editing. version = 3 +[[package]] +name = "adler2" +version = "2.0.0" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "512761e0bb2578d...
6
5
2
[{"id": "G0", "claim": "The pull request adds the vmstat utility without any tests, and the reviewer asks for tests or at least a test skeleton.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The code comment stating that GNU vmstat does not show guest ...
null
uutils__procps__368
uutils/procps
368
defect
dd470f471835377accd7d5d61cb8e6609c867fab
217c3d9b237ae5ae14fdafe0f3fd3e83a1e9d75d
`pmap`: implement `--extended`
Implemented `--extended` option in `pmap`. This resolves #22
diff --git a/src/uu/pmap/src/maps_format_parser.rs b/src/uu/pmap/src/maps_format_parser.rs index aee8d640..273f2086 100644 --- a/src/uu/pmap/src/maps_format_parser.rs +++ b/src/uu/pmap/src/maps_format_parser.rs @@ -6,20 +6,20 @@ use std::fmt; use std::io::{Error, ErrorKind}; -// Represents a parsed single line from...
7
4
2
[{"id": "G0", "claim": "The doc comment pointing at the kernel documentation for the expected smaps format would sit better on the SmapEntry struct than above parse_smap_entries.", "category": "documentation", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "On some systems (e.g. K...
null
uutils__procps__384
uutils/procps
384
defect
1f72da9f12a0a43c9e87e06465a674d0cdb1c995
3b6b7fdad419ab6e94f8e1b92e342f48e939e3ab
w: add uptime header
fix #60 output like: ```text $ cargo run -q w 00:23:47 0:25, 0 user, load average: 0.65, 0.50, 0.46 USER TTY LOGIN@ IDLE JCPU PCPU WHAT ```
diff --git a/src/uu/w/Cargo.toml b/src/uu/w/Cargo.toml index 6be5ccf7..e8f9c239 100644 --- a/src/uu/w/Cargo.toml +++ b/src/uu/w/Cargo.toml @@ -12,7 +12,7 @@ keywords = ["acl", "uutils", "cross-platform", "cli", "utility"] categories = ["command-line-utilities"] [dependencies] -uucore = { workspace = true, features ...
3
1
0
[{"id": "G0", "claim": "The uptime format output by this PR currently differs from the latest GNU coreutils format; the author says the divergence will only be fixed by a later PR in GNU coreutils followed by a uucore dependency update.", "category": "correctness", "verdict": "uncertain", "priority": "P1", "scope": "in...
null
uutils__procps__388
uutils/procps
388
defect
a592ac3b5916c036b763c2fb097bb5dfd2137396
6aadf25d66e0f4285c5fdf539b03ce100c29a126
vmstat: implement most functions
- [x] `delay` - [x] `count` - [x] `--active` - [ ] `--forks` - [ ] `--slabs` - [x] `--one-header` - [ ] `--stats` - [ ] `--disk` - [ ] `--disk-sum` - [ ] `--partition` - [x] `--unit` - [ ] `--timestamp` - [x] `--wide` - [x] `--no-first`
diff --git a/Cargo.lock b/Cargo.lock index 0a507613..b37afaf6 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2,12 +2,6 @@ # It is not intended for manual editing. version = 3 -[[package]] -name = "adler2" -version = "2.0.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "512761e0bb2578d...
9
9
2
[{"id": "G0", "claim": "The vmstat.rs source file should not have 755 permissions.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "pre_existing"}, {"id": "G1", "claim": "When the delay option is absent and no_first is false, delay remains -1 and is cast to a huge u64 in the sleep ca...
null
uutils__procps__41
uutils/procps
41
defect
386d565cf4969c694d46bfea6dc0469c980b5bb7
7c00b219bc5e0e715e681833a1df2163ccc658e8
w: Format time and get cmdline
This change allows w to display time in a similar way to the original procps w. Additionally, w now fetches the cmdline for each entry. Later, the fetch_cmdline and possibly format_time functions could be seperated out into a shared library for future applications, such as `ps` or `top`.
diff --git a/Cargo.lock b/Cargo.lock index 3a8dfb51..f9878809 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -410,6 +410,7 @@ dependencies = [ "sysinfo", "tempfile", "textwrap", + "time", "uu_free", "uu_pmap", "uu_pwdx", @@ -763,6 +764,7 @@ name = "uu_w" version = "0.0.1" dependencies = [ "clap", + "time",...
4
4
2
[{"id": "G0", "claim": "Add a test for the new date-formatting and cmdline-fetching functionality.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Add integration tests under tests/ in addition to the unit tests.", "category": "testing", "verdict": "supp...
null
uutils__procps__457
uutils/procps
457
defect
fbbe063297a59696c6daa42afafe47bbc5dfbaf7
4f1d753ad555250aa02807f1d0bd353b18b88d9c
pkill: implement `--queue`
wrote a tool to test: ``` $ ./sigr I'm 99648 recv a sig = 2 data = 10 data = 10 ``` ``` $ cargo run -q pkill -SIGINT -q 10 sigr -e ./sigr killed (pid 99648) ```
diff --git a/src/uu/pkill/src/pkill.rs b/src/uu/pkill/src/pkill.rs index d4c96a75..6267fdd4 100644 --- a/src/uu/pkill/src/pkill.rs +++ b/src/uu/pkill/src/pkill.rs @@ -4,7 +4,7 @@ // file that was distributed with this source code. // Pid utils -use clap::{arg, crate_version, Command}; +use clap::{arg, crate_version...
2
2
1
[{"id": "G0", "claim": "The pull request's new `--queue` functionality has no test, and sylvestre asks the author to add one.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "The `match` mapping the optional signal to a `c_int` inside the `sigqueue` call ...
null
uutils__procps__470
uutils/procps
470
defect
a8f314bc53ae02e123ae56569868af1432b30224
7c58872a031cd33cf2ff1add88daa224004958b0
vmstat: implement `--stats`
```txt $ cargo run -q vmstat -s&&echo '\n'&&vmstat -s 30517772 K total memory 11861748 K used memory 5625008 K active memory 14966020 K inactive memory 7094080 K free memory 3988 K buffer memory 14112448 K swap cache 23437308 K total swap 0 K used swap...
diff --git a/src/uu/vmstat/src/parser.rs b/src/uu/vmstat/src/parser.rs index 6cff6ea0..24e75a1a 100644 --- a/src/uu/vmstat/src/parser.rs +++ b/src/uu/vmstat/src/parser.rs @@ -61,6 +61,30 @@ impl ProcData { let idle_time = parts.next().unwrap().parse::<f64>().unwrap(); (uptime, idle_time) } + + ...
1
1
0
[{"id": "G0", "claim": "Replace the `match` with a functional approach (`table.get(name).and_then(|value| value.parse().ok()).unwrap_or_default()`) so that `T::default()` is no longer needed in the `None` arm of `get_one`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}...
null
uutils__procps__48
uutils/procps
48
defect
c5e7417b1d8096f9a4f074c666a9ee40e5bc679b
9903c1ea154d9c15e30dd1713c5afeea3c2b43d3
watch: implement interval
This merge aims to add an interval parsing implementation for watch. ``` -n, --interval seconds Specify update interval. The command will not allow quicker than 0.1 second inter- val, in which the smaller values are converted. Both '.' and ',' work for any lo- cal...
diff --git a/src/uu/watch/src/watch.rs b/src/uu/watch/src/watch.rs index 7d07594d..bde66911 100644 --- a/src/uu/watch/src/watch.rs +++ b/src/uu/watch/src/watch.rs @@ -5,6 +5,8 @@ use clap::crate_version; use clap::{Arg, Command}; +use std::io::{Error, ErrorKind}; +use std::num::ParseIntError; use std::process::{Co...
1
1
1
[{"id": "G0", "claim": "The new test_invalid_interval test should also check stderr (at least with .contains), not just assert that the command fails.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}]
null
uutils__procps__484
uutils/procps
484
defect
9355a3df82d10e5b4a1e899d1dda0b4ff26a336e
45f268ce811f94075b885c859cc4df16d9c82765
skill&snice: implement `no-action` `warnings` `interactive`
- impl `no-action` for skill - impl `warnings` for skill&snice - impl `interactive` for skill&snice
diff --git a/src/uu/skill/src/skill.rs b/src/uu/skill/src/skill.rs index e1c47c6c..ff851a86 100644 --- a/src/uu/skill/src/skill.rs +++ b/src/uu/skill/src/skill.rs @@ -3,7 +3,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -use clap:...
1
1
0
[{"id": "G0", "claim": "The test function `test_interrupt_args` should be renamed to `test_interactive_conflict_args` (or another name) that describes what it tests.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uutils__procps__53
uutils/procps
53
defect
6060b5e8b33d51b6146c5d0858e100c32efc3df2
0a85e96157078b08596cd985fb53d339e78e5a5c
w: Implement PCPU and JCPU
The w manpage defines JCPU as the total CPU time of all processes under a given tty. The PCPU is defined as being the total time being used by the command in the "what" field. For the JCPU implementation, the program creates a hashmap of all terminal numbers and their total time by walking the pid folders in /proc. ...
diff --git a/Cargo.lock b/Cargo.lock index 4080b95b..a7662064 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -862,6 +862,7 @@ version = "0.0.1" dependencies = [ "chrono", "clap", + "libc", "uucore", ] diff --git a/src/uu/w/Cargo.toml b/src/uu/w/Cargo.toml index 9eaf60c1..6be5ccf7 100644 --- a/src/uu/w/Cargo.toml...
4
4
1
[{"id": "G0", "claim": "Some tests fail on macOS because there is no /proc on macOS.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "fetch_terminal_jcpu should be rewritten in a more idiomatic Rust style using iterator adaptors and entry() instead of...
null
uutils__procps__559
uutils/procps
559
defect
f636cb972980a7985388df73fcac98b4b45bd2e4
43c51e1c3871ad1f8c78133645155fc00dcecdec
ps: Refactor process selection + support new flags
Refactor the process selection to better support cases where the behaviour is more complex than simply union of what each individual flag would list. This is bit similar to what is used in pgrep. Also implement new flags that are easier to implement now.
diff --git a/Cargo.lock b/Cargo.lock index e9262146..73aaf198 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1850,6 +1850,7 @@ dependencies = [ "libc", "nix", "prettytable-rs", + "regex", "uu_pgrep", "uucore 0.2.2", ] diff --git a/src/uu/pgrep/src/process_matcher.rs b/src/uu/pgrep/src/process_matcher.rs index ...
2
2
1
[{"id": "G0", "claim": "Making `-h` a short flag/alias of `--no-headers` and `--no-heading` does not match procps, where `ps -h` also switches the output format to BSD and therefore prints something different from the long flags.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduce...
null
uutils__procps__657
uutils/procps
657
defect
92f086d2f8b0c2c24311433e116fd7aa9f2357d5
24384deb4c32a34461b4214bd96b0af8ae2df514
hugetop: add hugetop command
The hugetop command displays system-wide hugepage informantion as well as per-process hugepage information. ```shell $ cargo run -q hugetop --help Report hugepage usage of processes and the system as a whole Usage: hugetop [OPTIONS] Options: -d, --delay <SECONDS> Delay between updates (0 = run once) -...
diff --git a/Cargo.lock b/Cargo.lock index f47ac348..eeab52a7 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1522,6 +1522,7 @@ dependencies = [ "tempfile", "textwrap", "uu_free", + "uu_hugetop", "uu_pgrep", "uu_pidof", "uu_pidwait", @@ -2344,6 +2345,15 @@ dependencies = [ "windows", ] +[[package]] +name ...
4
4
0
[{"id": "G0", "claim": "A named type would be better than the bare `(u64, u64, u64)` tuple returned by `parse_smaps_rollup`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "A reference to the Linux kernel documentation should be added to the smap...
null
uutils__procps__95
uutils/procps
95
defect
bb6a15fbb0329284c5dd2297ea5281ba4aac49dc
6c015083157b837a270075486de077424eb5be14
pgrep: Add command `pgrep`
fix #26
diff --git a/Cargo.lock b/Cargo.lock index 0ba205ea..ff57ffc0 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -523,6 +523,7 @@ dependencies = [ "tempfile", "textwrap", "uu_free", + "uu_pgrep", "uu_pmap", "uu_pwdx", "uu_slabtop", @@ -662,6 +663,15 @@ dependencies = [ "windows-sys 0.52.0", ] +[[package]] +na...
27
24
6
[{"id": "G0", "claim": "The usage line in pgrep.md should read `pgrep [options] <pattern>` instead of `<program-name>`, as suggested.", "category": "documentation", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The argument and variables should be named `pattern` instead of `p...
null
uutils__tar__149
uutils/tar
149
defect
8d1d0f56b76249640f374df917e752e88263b2f7
5b1fe91abf3164abb8987ad4e43a4e271ecf2eaa
tar: replace all string-based error variants with structured types
Every TarError variant now carries PathBuf and/or io::Error data instead of a pre-formatted String. Add thiserror derive macros so Display implementations are generated from #[error(...)] attributes in one central place. Eliminates the last generic TarOperation and InvalidArchive string variants.
diff --git a/Cargo.lock b/Cargo.lock index 2bc1767..55fbe9b 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1405,6 +1405,7 @@ dependencies = [ "clap", "regex", "tar", + "thiserror", "uucore", ] diff --git a/Cargo.toml b/Cargo.toml index 5a0c695..9a5f8a0 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -43,6 +43,7 @@...
3
3
0
[{"id": "G0", "claim": "The new CannotOpenArchive error variant does not appear to be used anywhere; the author probably meant to add it in the split-off -f - patch rather than here.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The FileNotFoun...
null
uutils__tar__163
uutils/tar
163
defect
30537acf7d2124d00551654885dfa9207f954f28
b469a73940f156e30a80a81df96438269db030eb
perf: use BufWriter<StdoutLock> for all verbose/listing output
Replace println! in list, create, and extract operations with writeln! on a BufWriter<StdoutLock>. This acquires stdout's mutex once per operation instead of once per write call, and batches writes to reduce write(2) syscalls. Also propagates write errors (e.g. broken pipe) gracefully instead of panicking.
diff --git a/src/uu/tar/src/operations/create.rs b/src/uu/tar/src/operations/create.rs index 6e639dc..a33d801 100644 --- a/src/uu/tar/src/operations/create.rs +++ b/src/uu/tar/src/operations/create.rs @@ -6,6 +6,7 @@ use crate::errors::TarError; use std::collections::VecDeque; use std::fs::{self, File}; +use std::io...
3
1
1
[{"id": "G0", "claim": "Wrapping io::stdout().lock() in a BufWriter delays interactive verbose/listing output on a terminal until the 8 KB buffer fills or the function returns, so the lock should be used directly (or via LineWriter) to keep line-by-line streaming.", "category": "correctness", "verdict": "uncertain", "p...
null
uutils__tar__35
uutils/tar
35
defect
b25a73dd88f9090bb865ae4ce96962818f191ed1
9fc664b5846a388813c121dc29538cddfeb96f4c
Implement minimal create and extract operations
Adds basic tar archive functionality using tar-rs library with proper error handling infrastructure. Core Implementation: - TarError enum implementing UError for uucore integration - Extract operation (-x) for unpacking tar archives - Create operation (-c) for creating tar archives from files/directories - Verbo...
diff --git a/.gitignore b/.gitignore index ea8c4bf..7528e5f 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,23 @@ -/target +# spell-checker:ignore (misc) direnv + +target/ +coverage/ +/src/*/gen_table +/build/ +/tmp/ +/busybox/ +/.vscode/ +/.vs/ +/public/ +*~ +.*.swp +.*.swo +.idea +lib*.a +/docs/_build +*.iml +### m...
4
4
1
[{"id": "G0", "claim": "The tar dependency in src/uu/tar/Cargo.toml should come from the workspace (workspace = true) instead of being pinned as a direct \"0.4\" version.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Only the InvalidArchive var...
null
uutils__tar__46
uutils/tar
46
defect
aa5fb1a9525770648c07e8ab2303340bc69de31b
04d03d7a860afd47a7913b05215645b6f902a5d2
Add test documentation and expand CLI test coverage
Implement standard exit codes and expand CLI test suite with better documentation. - Implement standard POSIX/GNU tar exit codes in `src/uu/tar/src/tar.rs`: * Map `clap` argument errors (unknown options, missing arguments) to usage error code (64) * Update fatal errors (missing files, empty archives, conflicti...
diff --git a/README.md b/README.md index c5e696a..4fa1e1b 100644 --- a/README.md +++ b/README.md @@ -22,6 +22,20 @@ cargo build --release cargo run --release ``` +## Testing + +The tar application has a focused testing philosophy that separates concerns between the application (CLI interface, error handling, user e...
11
10
0
[{"id": "G0", "claim": "The README's testing section should wrap the tar-rs identifier in backticks like the rest of the documentation.", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "The new tests/README.md says library tests belong in a `tar-rs/t...
null
uutils__tar__53
uutils/tar
53
defect
d3c011c7afce8c88a9cb105830ffc1c4c62760d0
7ec4f19a1c42c32ca5d518cbd76bce014b4606af
Remove leading slash from file name if path is absolute
This PR removes leading slash from file names if path is absolute. Closes: #44
diff --git a/src/uu/tar/src/operations/create.rs b/src/uu/tar/src/operations/create.rs index 022cb62..15a3f77 100644 --- a/src/uu/tar/src/operations/create.rs +++ b/src/uu/tar/src/operations/create.rs @@ -5,7 +5,7 @@ use crate::errors::TarError; use std::fs::File; -use std::path::Path; +use std::path::{Path, PathBu...
7
5
2
[{"id": "G0", "claim": "Only file paths get the leading '/' stripped; directory paths should be normalized too, as BSD and GNU tar do for dirs and files, with the normalization moved above the dir check.", "category": "correctness", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim":...
null
uutils__util-linux__125
uutils/util-linux
125
defect
1de8d3d009c3a13391176e2d8acbb796681fe12c
93173b9f005a273ab0f74ecaa570a99867a5971e
Add setsid implementation
This one is very straight-forward. I did both an implementation using libc to fork and exec directly and one using the std::process::Command interface. I am not sure how much is gained in terms of clarity or safety, given how straight-forward this tool is, let me know which one you prefer =) The main open questions ...
diff --git a/Cargo.lock b/Cargo.lock index 33d5852e..7974485d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -876,6 +876,7 @@ dependencies = [ "clap_mangen", "dns-lookup", "libc", + "nix", "phf", "phf_codegen", "pretty_assertions", @@ -891,6 +892,7 @@ dependencies = [ "uu_lsmem", "uu_mountpoint", "uu_rev...
8
8
0
[{"id": "G0", "claim": "The one-line description in setsid.md should read \"Run a program in a new session.\" instead of \"Run a command as the leader of a new session.\"", "category": "documentation", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim": "src/uu/setsid/src/setsid.rs i...
null
uutils__util-linux__167
uutils/util-linux
167
defect
9e087e6ec65c914739b5270ce1442d52cd27a7f2
9e99aad01b30e0a429fe2a714c6bddf1b33b5d78
Support `dmesg` filtering options (`--facility`, `--level`, `--since`, and `--until` options).
This PR is a continuation of issue #14 I also implemented `RecordIterator` in this PR. The reasons are as follows: - It makes sense to use iterators while implementing filtering options. - Later, we need to support "online" reads, which is easier to implement with iterators. (see `--follow` and `--follow-new` opt...
diff --git a/Cargo.lock b/Cargo.lock index 482217a9..4d303158 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -405,6 +405,12 @@ version = "2.7.4" source = "registry+https://github.com/rust-lang/crates.io-index" checksum = "78ca9ab1a0babb1e7d5695e3530886289c18cf2f87ec19a575a0abdce112e3a3" +[[package]] +name = "minimal-l...
6
3
2
[{"id": "G0", "claim": "Running the command manually with the same --since/--until values as the test produces no output, although the test passes.", "category": "testing", "verdict": "opposed", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_datetime can be simplified by dropping the redundant O...
null
uutils__util-linux__194
uutils/util-linux
194
defect
3a1cad2c1ff8eadcd92369c945838906a313061b
3dda9b4bf72fa662c8e4f28f90a54b69f4f57a36
blockdev: Add tool
This supports most of the functionality; only missing functionality is --report with no arguments.
diff --git a/Cargo.lock b/Cargo.lock index c061dcd1..92b5f27d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1020,6 +1020,7 @@ dependencies = [ "rlimit", "tempfile", "textwrap", + "uu_blockdev", "uu_ctrlaltdel", "uu_dmesg", "uu_fsfreeze", @@ -1033,6 +1034,17 @@ dependencies = [ "xattr", ] +[[package]] +n...
1
1
0
[{"id": "G0", "claim": "Add the missing package description (\"blockdev ~ Get or set various block device attributes.\") to src/uu/blockdev/Cargo.toml.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}]
null
uutils__util-linux__201
uutils/util-linux
201
defect
c00a4cb0b60122adcf994df628ca82fa26069982
811c6b9c1c8107ccce966c0d7c770dfa833f1365
Add support for `--hex` flag for lscpu command
Fixes #16
diff --git a/src/uu/lscpu/src/lscpu.rs b/src/uu/lscpu/src/lscpu.rs index 001ae36f..c36582db 100644 --- a/src/uu/lscpu/src/lscpu.rs +++ b/src/uu/lscpu/src/lscpu.rs @@ -3,7 +3,7 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source code. -use clap:...
2
2
1
[{"id": "G0", "claim": "The new test only asserts that `lscpu --hex` succeeds; please verify the command's output as well.", "category": "testing", "verdict": "supported", "priority": "P1", "scope": "introduced"}, {"id": "G1", "claim": "Please run rustfmt on the code before merge.", "category": "style", "verdict": "sup...
null
uutils__util-linux__218
uutils/util-linux
218
defect
c0ae6bf61ff2e0ff38fff4d36a7ab025c5af1d77
0281da00dd6d752416728a70de85282f99aab9fb
`lscpu`: Support extracting and outputting nested fields
`lscpu` should be capable of outputting nested information. When using human-readable output this is achieved simply using indentation, where as in JSON mode nested fields go under the `children` property. ### Core changes: - Modified `CpuInfo` to be a recursive structure, allowing for nesting of entries through th...
diff --git a/src/uu/lscpu/src/lscpu.rs b/src/uu/lscpu/src/lscpu.rs index 5dd313bf..0676a1d7 100644 --- a/src/uu/lscpu/src/lscpu.rs +++ b/src/uu/lscpu/src/lscpu.rs @@ -6,7 +6,7 @@ use clap::{crate_version, Arg, ArgAction, Command}; use regex::RegexBuilder; use serde::Serialize; -use std::{fs, str::FromStr}; +use std:...
3
3
1
[{"id": "G0", "claim": "The CPU(s) block should be moved down so the output shows the CPU information after the architecture information, as the original lscpu does.", "category": "correctness", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The max_field_width computation bloc...
null
uutils__util-linux__231
uutils/util-linux
231
defect
92552f73f2fcceed307e56b2b6fe3c3c53649e91
9dd6bc139168b1628156a8b13aae111019757d17
Add partial implementation of `lslocks`
Didn't have much time to spend on this but managed to cobble together a rudimentary starting point for the full `lslocks` implementation. So far it only relies on information gathered directly from `/proc/locks`, without diving deeper into `/proc/<pid>/fdinfo` to parse out information regarding the actual file being...
diff --git a/Cargo.lock b/Cargo.lock index 87b3096c..59bafca2 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -984,6 +984,7 @@ dependencies = [ "uu_fsfreeze", "uu_last", "uu_lscpu", + "uu_lslocks", "uu_lsmem", "uu_mountpoint", "uu_rev", @@ -1056,6 +1057,16 @@ dependencies = [ "uucore", ] +[[package]] +name...
5
4
1
[{"id": "G0", "claim": "The manually added `[workspace] members = [\"src/uu/lslocks\"]` block in the root Cargo.toml should be removed, since the author only added it unknowingly via `cargo new`.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Fo...
null
uutils__util-linux__268
uutils/util-linux
268
defect
390d074712bda9815129bc017124a6d7422867db
b9588f8386aff3174d1bf04b3b168a267b6cc000
mcookie: add support for human-readable sizes with -m option
fixes #257 took inspiration from CacheSize https://github.com/uutils/util-linux/blob/390d074712bda9815129bc017124a6d7422867db/src/uu/lscpu/src/sysfs.rs#L90C1-L138C1
diff --git a/src/uu/mcookie/src/mcookie.rs b/src/uu/mcookie/src/mcookie.rs index ab28250b..626cde4d 100644 --- a/src/uu/mcookie/src/mcookie.rs +++ b/src/uu/mcookie/src/mcookie.rs @@ -9,6 +9,8 @@ use clap::{crate_version, Arg, ArgAction, Command}; use md5::{Digest, Md5}; use rand::RngCore; use uucore::{error::UResult...
2
2
0
[{"id": "G0", "claim": "Please add the license header to the top of the new file src/uu/mcookie/src/size.rs.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "Instead of eprintln! plus std::process::exit(1), the max-size parse failure should return...
null
uutils__util-linux__274
uutils/util-linux
274
defect
390d074712bda9815129bc017124a6d7422867db
84d90e624255bfa1caf917aedb394695509ef5d1
mcookie - fix providing /dev/random or /dev/urandom as file leads to infinite loop
fixes #264 Fixes an infinite loop when `mcookie` reads from `/dev/random` or `/dev/urandom` without a `--max-size`. The issue occurred because `read_to_end()` was used on these non-terminating character devices. This PR checks if the input file is a character device. If so, and no `--max-size` is given, it re...
diff --git a/src/uu/mcookie/src/mcookie.rs b/src/uu/mcookie/src/mcookie.rs index ab28250b..92f75124 100644 --- a/src/uu/mcookie/src/mcookie.rs +++ b/src/uu/mcookie/src/mcookie.rs @@ -3,6 +3,8 @@ // For the full copyright and license information, please view the LICENSE // file that was distributed with this source co...
2
2
0
[{"id": "G0", "claim": "The test could call `trim_end()` once on `stdout_no_limit` — and likewise on `stdout_verbose` — instead of repeating it on each of the following assertion lines.", "category": "maintainability", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "The added te...
null
uutils__util-linux__285
uutils/util-linux
285
defect
f24471694c8cde152aab4af26591f902ce3dff1b
812924a057950e0c5b9340d4fc7205c82c036315
mcookie: generate cookie even if specified file doesn't exist
Fixes #262
diff --git a/src/uu/mcookie/src/mcookie.rs b/src/uu/mcookie/src/mcookie.rs index 29b008e3..837f7ea7 100644 --- a/src/uu/mcookie/src/mcookie.rs +++ b/src/uu/mcookie/src/mcookie.rs @@ -70,7 +70,13 @@ pub fn uumain(args: impl uucore::Args) -> UResult<()> { } } else { input_name = file_pa...
2
2
1
[{"id": "G0", "claim": "The explicit type annotations on `open_result` (`Result<File, std::io::Error>`) and on `f` (`File`) are unnecessary because the compiler can infer them, and should be dropped.", "category": "maintainability", "verdict": "supported", "priority": "P3", "scope": "introduced"}, {"id": "G1", "claim":...
null
uutils__util-linux__342
uutils/util-linux
342
defect
7b386b93656388d2b3f04063d6f57dc27a5a3d56
9f535bc51961ad01331d2a68ca8202e4400440ae
feat(last): add --since and --until
Resolves https://github.com/uutils/util-linux/issues/213
diff --git a/Cargo.lock b/Cargo.lock index ea601c8f..12319b63 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1266,6 +1266,7 @@ dependencies = [ "dns-lookup", "libc", "nix", + "parse_datetime", "phf", "phf_codegen", "pretty_assertions", @@ -1360,6 +1361,7 @@ version = "0.0.1" dependencies = [ "clap", "dns...
3
3
1
[{"id": "G0", "claim": "The two default values for --since and --until should be hidden from the --help output because they are noise not relevant to the user.", "category": "design", "verdict": "supported", "priority": "P2", "scope": "introduced"}, {"id": "G1", "claim": "parse_time_value should be restructured to use ...
null