Skip to content

Commit aecbacc

Browse files
authored
Merge pull request #17 from jkfran/release0.8.0
Release v0.8.0
2 parents aa57df8 + b03047e commit aecbacc

4 files changed

Lines changed: 13 additions & 8 deletions

File tree

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "killport"
3-
version = "0.7.0"
3+
version = "0.8.0"
44
authors = ["Francisco Jimenez Cabrera <jkfran@gmail.com>"]
55
edition = "2021"
66
license = "MIT"

SECURITY.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ We are committed to providing security updates for the following versions of kil
66

77
| Version | Supported |
88
| ------- | ------------------ |
9-
| 0.7.x | :white_check_mark: |
10-
| < 0.7.0 | :x: |
9+
| 0.8.x | :white_check_mark: |
10+
| < 0.8.0 | :x: |
1111

1212
Older versions of killport may still work but are not actively maintained or supported. We encourage users to upgrade to the latest version to receive security updates and feature improvements.
1313

@@ -19,7 +19,7 @@ Please follow these steps to report a vulnerability:
1919

2020
1. Go to the [GitHub Security tab](https://github.com/jkfran/killport/security/advisories) in the killport repository.
2121
2. Click on "New draft advisory."
22-
3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.7.0."
22+
3. Provide a descriptive title for the advisory, such as "Security Vulnerability in killport v0.8.0."
2323
4. Provide a detailed description of the vulnerability, including steps to reproduce the issue, affected components, and potential impact.
2424
5. If you have a suggested patch or workaround, please include it in the report. However, this is not required.
2525
6. Submit the draft advisory.

snapcraft.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: killport
2-
version: "0.7.0"
2+
version: "0.8.0"
33
summary: A CLI tool to kill processes using specified ports
44
description: |
55
Killport is a command-line utility to find and kill processes listening on specified ports.

src/linux.rs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,17 @@ fn find_target_inodes(port: u16) -> Vec<u64> {
7373
}
7474
}
7575

76-
fn add_matching_inodes<T: NetEntry>(target_inodes: &mut Vec<u64>, net_entries: procfs::ProcResult<Vec<T>>, port: u16) {
76+
fn add_matching_inodes<T: NetEntry>(
77+
target_inodes: &mut Vec<u64>,
78+
net_entries: procfs::ProcResult<Vec<T>>,
79+
port: u16,
80+
) {
7781
if let Ok(net_entries) = net_entries {
7882
target_inodes.extend(
79-
net_entries.into_iter()
83+
net_entries
84+
.into_iter()
8085
.filter(move |net_entry| net_entry.local_address().port() == port)
81-
.map(|net_entry| net_entry.inode())
86+
.map(|net_entry| net_entry.inode()),
8287
);
8388
}
8489
}

0 commit comments

Comments
 (0)