nmap / nmap/npcap

Npcap source has CR-LF at the ends of lines when checked out on UN*Xes

Open
#158 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement Infrastructure
Dominant language
C
Stars
3.6k
Forks
592
PR merge metrics
No merged PRs in 30d

Description

When I checkout git@github.com:nmap/npcap.git on my Mac running macOS, the source files have CR-LF rather than LF at the ends of lines.

I think Git can be configured to give files CR-LF line endings when checked out on Windows and LF-only line endings when checked out on UN*X, and that should be how the libpcap, tcpdump, and Wireshark Git repositories are set up (if that's not the case, please file issues on the libpcap or tcpdump repository or file a bug on the Wireshark Bugzilla).

If that's possible, that would be a little more convenient for those of us reading the code on UN*Xes.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the repository's Git checkout attributes and line-ending configuration, comparing the behavior on macOS with the expected Windows behavior described in the issue. Done means source files check out with LF endings on Unix-like systems and CR-LF endings on Windows, without requiring manual conversion.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
developer-experience
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.