Skip to content

Commit

Permalink
change default file mode to 0664 to be more sensible
Browse files Browse the repository at this point in the history
  • Loading branch information
Qingping Hou committed Mar 25, 2020
1 parent f02382c commit 54bad26
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ var (
FlagStatusAddr = ":8087"
FlagExclude []string
FlagScratch bool
FlagDefaultFileMode = "0666"
FlagDefaultFileMode = "0664"

metricsSyncTime = prometheus.NewGauge(prometheus.GaugeOpts{
Namespace: "objinsync",
Expand Down Expand Up @@ -168,7 +168,7 @@ func main() {
"skip checksums calculation and override all files during the initial sync",
)
pullCmd.PersistentFlags().StringVarP(
&FlagDefaultFileMode, "default-file-mode", "m", "0666", "default mode to use for creating local file")
&FlagDefaultFileMode, "default-file-mode", "m", "0664", "default mode to use for creating local file")

rootCmd.AddCommand(pullCmd)
rootCmd.Execute()
Expand Down
2 changes: 1 addition & 1 deletion pkg/sync/pull.go
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,7 @@ func NewPuller(remoteUri string, localDir string) (*Puller, error) {
RemoteUri: remoteUri,
LocalDir: localDir,
workingDir: filepath.Join(localDir, ".objinsync"),
defaultMode: 0666,
defaultMode: 0664,
workerCnt: 5,
uidCache: map[string]string{},
uidLock: &sync.Mutex{},
Expand Down

0 comments on commit 54bad26

Please sign in to comment.