Skip to content

Remove 'All rights reserved' from copyright headers #52

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

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -151,22 +151,22 @@ Additional references:
(See [Contributing to documentation related to PowerShell](#contributing-to-documentation-related-to-powershell) for more info.)
* If your change adds a new source file, ensure the appropriate copyright and license headers is on top.
It is standard practice to have both a copyright and license notice for each source file.
* For `.h`, `.cpp`, and `.cs` files use:
* For `.h`, `.cpp`, `.cs`, and `.rc` files use:

// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

* For `.ps1` and `.psm1` files use:

# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

* If your change adds a new module manifest (.psd1 file), ensure that:

```powershell
Author = "PowerShell"
Company = "Microsoft Corporation"
Copyright = "Copyright (c) Microsoft Corporation. All rights reserved."
Copyright = "Copyright (c) Microsoft Corporation."
```

### Pull Request - Work in Progress
Expand Down
6 changes: 3 additions & 3 deletions build.psm1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

# On Unix paths is separated by colon
Expand Down Expand Up @@ -586,7 +586,7 @@ function Start-BuildPowerShellNativePackage
<license type="expression">MIT</license>
<tags>PowerShell</tags>
<language>en-US</language>
<copyright>© Microsoft Corporation. All rights reserved.</copyright>
<copyright>© Microsoft Corporation.</copyright>
<contentFiles>
<files include="**/*" buildAction="None" copyToOutput="true" flatten="false" />
</contentFiles>
Expand Down Expand Up @@ -981,7 +981,7 @@ Fix steps:

Start-NativeExecution { & "~/.rcedit/rcedit-x64.exe" $pwshPath --set-icon "$PSScriptRoot\assets\Powershell_black.ico" `
--set-file-version $fileVersion --set-product-version $ReleaseVersion --set-version-string "ProductName" "PowerShell Core 6" `
--set-version-string "LegalCopyright" "(C) Microsoft Corporation. All Rights Reserved." `
--set-version-string "LegalCopyright" "(c) Microsoft Corporation." `
--application-manifest "$PSScriptRoot\assets\pwsh.manifest" } | Write-Verbose
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,6 @@
<owners>Microsoft</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>PowerShell Core ETW resource binary</description>
<copyright>(c) Microsoft Corporation. All rights reserved.</copyright>
<copyright>(c) Microsoft Corporation.</copyright>
</metadata>
</package>
2 changes: 1 addition & 1 deletion src/PowerShell.Core.Instrumentation/RegisterManifest.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Copyright (c) Microsoft Corporation.
# Licensed under the MIT License.

<#
Expand Down
6 changes: 3 additions & 3 deletions src/PowerShell.Core.Instrumentation/version.rc
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
//
// Copyright (C) Microsoft. All rights reserved.
//
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include <windows.h>
#include <ntverp.h>

Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/createhardlink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief create new hard link
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/createhardlink.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/createprocess.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "createprocess.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/createprocess.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/createsymlink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief create new symbolic link
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/createsymlink.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/followsymlink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns whether a path is a symbolic link
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/followsymlink.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcommonlstat.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the stat of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcommonlstat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcommonstat.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the stat of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcommonstat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcomputername.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief Implements GetComputerName Win32 API
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcomputername.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcurrentprocessorid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "getcurrentprocessorid.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcurrentprocessorid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcurrentthreadid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "getcurrentthreadid.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getcurrentthreadid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/geterrorcategory.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "geterrorcategory.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/geterrorcategory.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getfileowner.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the owner of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getfileowner.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getgrgid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the groupname for a gid
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getgrgid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getinodedata.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief Retrieve the device ID and inode number of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getinodedata.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getlinkcount.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief Retrieve link count of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getlinkcount.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getlstat.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the stat of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getlstat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getppid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pal_config.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getppid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getpwuid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the username for a uid
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getpwuid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getstat.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns the stat of a file
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getstat.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getuserfrompid.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include "pal.h"
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/getuserfrompid.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/isdirectory.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns if the path is a directory
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/isdirectory.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/isexecutable.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns whether a file is executable
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/isexecutable.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/isfile.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns if the path exists
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/isfile.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/issamefilesystemitem.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief Determines whether two paths ultimately point to the same filesystem object
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/issamefilesystemitem.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/issymlink.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief returns whether a path is a symbolic link
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/issymlink.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/nativesyslog.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @file nativesyslog.cpp
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/nativesyslog.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/pal.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/setdate.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

//! @brief set local/system date and time
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/src/setdate.h
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#pragma once
Expand Down
2 changes: 1 addition & 1 deletion src/libpsl-native/test/main.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

#include <gtest/gtest.h>
Expand Down
Loading