Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

macOS: ls argument not parsed correctly #1128

Open
DmitryDodzin opened this issue Feb 26, 2023 · 2 comments
Open

macOS: ls argument not parsed correctly #1128

DmitryDodzin opened this issue Feb 26, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@DmitryDodzin
Copy link
Member

DmitryDodzin commented Feb 26, 2023

Bug Description

When running ls, it returns the following error:
ls: : No such file or directory exit status 1
which we expect to show the path of the file that's not being found.

Also when running ls with mirrord it will return local results instead of remote results. This might be related to #120 and is lower priority.

Steps to Reproduce

run ls with mirrord and see that it returns local values instead of remote

Backtrace

No response

Relevant Logs

No response

Your operating system and version

macOs 13.2 (22D68)

Local process

ls -la /var/

Local process version

No response

Additional Info

No response

@DmitryDodzin DmitryDodzin added the bug Something isn't working label Feb 26, 2023
@aviramha
Copy link
Member

This is probably 2 different issues:

  1. ls returns local result
  2. ls from fork doesn't get the argument correctly:
    cmd := exec.Command("ls", "-la", "/payloads/")
    returns
 ls: : No such file or directory
 exit status 1

@eyalb181 eyalb181 changed the title macOS: ls returns local values macOS: ls argument not parsed correctly Feb 28, 2023
@aviramha
Copy link
Member

Couldn't reproduce the directory being corrupted, sample code:

package main

import (
	"fmt"
	"os/exec"
)

func main() {
	fmt.Println("starting")
	out, err := exec.Command("ls", "-la", "/payloads/").CombinedOutput()
	fmt.Printf("%s\n", out)
	fmt.Println(err)
	fmt.Println("done")
}

Having said that, it did not return remote directory listing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants