GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — slib writes unitest.txt (and stopspinning) into the current folder as root · Issue #65 · tmiland/kernel-installer

slib writes unitest.txt (and stopspinning) into the current folder as root #65

New issue
Copy link
New issue
Copy link
Closed
#73
Closed
slib writes unitest.txt (and stopspinning) into the current folder as root#65
#73
Copy link

Description

@davmonk
davmonk
opened on Nov 10, 2026
Issue body actions

Problem

shell_has_unicode in src/slib.sh:292-295 writes, reads and deletes a file called unitest.txt in the current folder. It runs once when the library loads, which is the folder the user started the script from, and again on every run_ok call. The spinner's stopspinning file (src/slib.sh:219) is also a fixed name in the current folder.

Impact

Minor. Root writes to a fixed file name in whatever folder the script was started from. In /tmp and /var/tmp, the kernel setting fs.protected_regular=2 (default on current Ubuntu/Mint) stops root from writing into a file another user planted there. A shared folder that is writable by others but not sticky has no such protection. In a folder that holds a real unitest.txt, the script would also overwrite and delete it.

Suggested fix

Check for Unicode without a file (e.g. printf '✔' | wc -c or a check on the locale), and keep the spinner's stop file in a mktemp -d folder.

How this was checked

  • Read the code at main 8cbf9f2.
  • fs.protected_regular = 2 and fs.protected_symlinks = 1 on Linux Mint 22.3 and Ubuntu 26.04 (sysctl).
  • Not tested: behaviour in a non-sticky shared folder.

Activity

  1. tmiland
    closed this as completedin #73on Nov 10, 2026
  2. tmiland
    added a commit that references this issue on Nov 10, 2026

    fix(slib): keep unicode detection and spinner files out of the caller…

    74ab0b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      You are visitor 01402792 — GeezerVison does not store the pages you look up.
      Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.